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 ; NVPTX can only select dynamic_stackalloc on sm_52+ and with ptx73+
9 ; XFAIL: target=nvptx{{.*}}
11 define i32 @f(ptr %p) nounwind {
14 %conv = sext i8 %0 to i32
18 define i64 @g(i32 %i) nounwind {
23 %0 = alloca i8, i32 %i
24 call void @llvm.memset.p0.i32(ptr %0, i8 0, i32 %i, i1 false)
25 %call = call i32 @f(ptr %0)
26 %conv = sext i32 %call to i64
30 declare void @llvm.memset.p0.i32(ptr, i8, i32, i1) nounwind
32 !llvm.module.flags = !{!0}
33 !0 = !{i32 2, !"override-stack-alignment", i32 32}