1 ; Check that stack alignment can be forced. Individual targets should test their
2 ; specific implementation details.
4 ; RUN: llc < %s -stackrealign | FileCheck %s
8 ; Stack realignment not supported.
9 ; XFAIL: target=sparc{{.*}}
11 ; NVPTX can only select dynamic_stackalloc on sm_52+ and with ptx73+
12 ; XFAIL: target=nvptx{{.*}}
14 define i32 @f(ptr %p) nounwind {
17 %conv = sext i8 %0 to i32
21 define i64 @g(i32 %i) nounwind {
26 %0 = alloca i8, i32 %i
27 call void @llvm.memset.p0.i32(ptr %0, i8 0, i32 %i, i1 false)
28 %call = call i32 @f(ptr %0)
29 %conv = sext i32 %call to i64
33 declare void @llvm.memset.p0.i32(ptr, i8, i32, i1) nounwind
35 !llvm.module.flags = !{!0}
36 !0 = !{i32 2, !"override-stack-alignment", i32 32}