diff options
Diffstat (limited to 'test/CodeGen/SystemZ/frame-08.ll')
-rw-r--r-- | test/CodeGen/SystemZ/frame-08.ll | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/CodeGen/SystemZ/frame-08.ll b/test/CodeGen/SystemZ/frame-08.ll index 6cf6378268f4..da2a6142fb47 100644 --- a/test/CodeGen/SystemZ/frame-08.ll +++ b/test/CodeGen/SystemZ/frame-08.ll @@ -3,11 +3,11 @@ ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s ; This is the largest frame size that can use a plain LMG for %r6 and above. -; It is big enough to require an emergency spill slot at 160(%r15), -; so get a frame of size 524232 by allocating (524232 - 168) / 8 = 65508 +; It is big enough to require two emergency spill slots at 160(%r15), +; so get a frame of size 524232 by allocating (524232 - 176) / 8 = 65507 ; extra doublewords. define void @f1(i32 *%ptr, i64 %x) { -; CHECK: f1: +; CHECK-LABEL: f1: ; CHECK: stmg %r6, %r15, 48(%r15) ; CHECK: .cfi_offset %r6, -112 ; CHECK: .cfi_offset %r7, -104 @@ -64,18 +64,18 @@ define void @f1(i32 *%ptr, i64 %x) { store volatile i32 %add12, i32 *%ptr store volatile i32 %add13, i32 *%ptr store volatile i32 %add14, i32 *%ptr - %y = alloca [65508 x i64], align 8 - %entry = getelementptr inbounds [65508 x i64]* %y, i64 0, i64 0 + %y = alloca [65507 x i64], align 8 + %entry = getelementptr inbounds [65507 x i64]* %y, i64 0, i64 0 store volatile i64 %x, i64* %entry ret void } ; This is the largest frame size that can use a plain LMG for %r14 and above -; It is big enough to require an emergency spill slot at 160(%r15), -; so get a frame of size 524168 by allocating (524168 - 168) / 8 = 65500 +; It is big enough to require two emergency spill slots at 160(%r15), +; so get a frame of size 524168 by allocating (524168 - 176) / 8 = 65499 ; extra doublewords. define void @f2(i32 *%ptr, i64 %x) { -; CHECK: f2: +; CHECK-LABEL: f2: ; CHECK: stmg %r14, %r15, 112(%r15) ; CHECK: .cfi_offset %r14, -48 ; CHECK: .cfi_offset %r15, -40 @@ -100,8 +100,8 @@ define void @f2(i32 *%ptr, i64 %x) { store volatile i32 %add4, i32 *%ptr store volatile i32 %add5, i32 *%ptr store volatile i32 %add14, i32 *%ptr - %y = alloca [65500 x i64], align 8 - %entry = getelementptr inbounds [65500 x i64]* %y, i64 0, i64 0 + %y = alloca [65499 x i64], align 8 + %entry = getelementptr inbounds [65499 x i64]* %y, i64 0, i64 0 store volatile i64 %x, i64* %entry ret void } @@ -110,7 +110,7 @@ define void @f2(i32 *%ptr, i64 %x) { ; frame size that needs two instructions to perform the final LMG for ; %r6 and above. define void @f3(i32 *%ptr, i64 %x) { -; CHECK: f3: +; CHECK-LABEL: f3: ; CHECK: stmg %r6, %r15, 48(%r15) ; CHECK: .cfi_offset %r6, -112 ; CHECK: .cfi_offset %r7, -104 @@ -167,8 +167,8 @@ define void @f3(i32 *%ptr, i64 %x) { store volatile i32 %add12, i32 *%ptr store volatile i32 %add13, i32 *%ptr store volatile i32 %add14, i32 *%ptr - %y = alloca [65509 x i64], align 8 - %entry = getelementptr inbounds [65509 x i64]* %y, i64 0, i64 0 + %y = alloca [65508 x i64], align 8 + %entry = getelementptr inbounds [65508 x i64]* %y, i64 0, i64 0 store volatile i64 %x, i64* %entry ret void } @@ -177,7 +177,7 @@ define void @f3(i32 *%ptr, i64 %x) { ; frame size that needs two instructions to perform the final LMG for ; %r14 and %r15. define void @f4(i32 *%ptr, i64 %x) { -; CHECK: f4: +; CHECK-LABEL: f4: ; CHECK: stmg %r14, %r15, 112(%r15) ; CHECK: .cfi_offset %r14, -48 ; CHECK: .cfi_offset %r15, -40 @@ -202,8 +202,8 @@ define void @f4(i32 *%ptr, i64 %x) { store volatile i32 %add4, i32 *%ptr store volatile i32 %add5, i32 *%ptr store volatile i32 %add14, i32 *%ptr - %y = alloca [65501 x i64], align 8 - %entry = getelementptr inbounds [65501 x i64]* %y, i64 0, i64 0 + %y = alloca [65500 x i64], align 8 + %entry = getelementptr inbounds [65500 x i64]* %y, i64 0, i64 0 store volatile i64 %x, i64* %entry ret void } @@ -211,7 +211,7 @@ define void @f4(i32 *%ptr, i64 %x) { ; This is the largest frame size for which the prepatory increment for ; "lmg %r14, %r15, ..." can be done using AGHI. define void @f5(i32 *%ptr, i64 %x) { -; CHECK: f5: +; CHECK-LABEL: f5: ; CHECK: stmg %r14, %r15, 112(%r15) ; CHECK: .cfi_offset %r14, -48 ; CHECK: .cfi_offset %r15, -40 @@ -236,8 +236,8 @@ define void @f5(i32 *%ptr, i64 %x) { store volatile i32 %add4, i32 *%ptr store volatile i32 %add5, i32 *%ptr store volatile i32 %add14, i32 *%ptr - %y = alloca [69595 x i64], align 8 - %entry = getelementptr inbounds [69595 x i64]* %y, i64 0, i64 0 + %y = alloca [69594 x i64], align 8 + %entry = getelementptr inbounds [69594 x i64]* %y, i64 0, i64 0 store volatile i64 %x, i64* %entry ret void } @@ -245,7 +245,7 @@ define void @f5(i32 *%ptr, i64 %x) { ; This is the smallest frame size for which the prepatory increment for ; "lmg %r14, %r15, ..." needs to be done using AGFI. define void @f6(i32 *%ptr, i64 %x) { -; CHECK: f6: +; CHECK-LABEL: f6: ; CHECK: stmg %r14, %r15, 112(%r15) ; CHECK: .cfi_offset %r14, -48 ; CHECK: .cfi_offset %r15, -40 @@ -270,8 +270,8 @@ define void @f6(i32 *%ptr, i64 %x) { store volatile i32 %add4, i32 *%ptr store volatile i32 %add5, i32 *%ptr store volatile i32 %add14, i32 *%ptr - %y = alloca [69596 x i64], align 8 - %entry = getelementptr inbounds [69596 x i64]* %y, i64 0, i64 0 + %y = alloca [69595 x i64], align 8 + %entry = getelementptr inbounds [69595 x i64]* %y, i64 0, i64 0 store volatile i64 %x, i64* %entry ret void } |