Skip to content

Commit 86705eb

Browse files
committed
[X86] huge-stack-offset.ll - add gnux32 test coverage
This should match x86 for the basic implementation, but its useful to check it actually runs correctly.
1 parent e7592d8 commit 86705eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/test/CodeGen/X86/huge-stack-offset.ll

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
; RUN: llc < %s -mtriple=x86_64-linux-unknown -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-64
22
; RUN: llc < %s -mtriple=i386-linux-unknown -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-32
3+
; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -verify-machineinstrs | FileCheck %s -check-prefix=CHECK-32
34

45
; Test that a large stack offset uses a single add/sub instruction to
56
; adjust the stack pointer.
@@ -11,7 +12,7 @@ define void @foo() nounwind {
1112
; CHECK-64-NOT: subq $2147483647, %rsp
1213
; CHECK-64: movabsq $50000000{{..}}, [[RAX:%r..]]
1314
; CHECK-64-NEXT: addq [[RAX]], %rsp
14-
15+
;
1516
; CHECK-32-LABEL: foo:
1617
; CHECK-32: ud2
1718
; CHECK-32-NOT: subl $2147483647, %esp
@@ -27,7 +28,7 @@ define i32 @foo2() nounwind {
2728
; CHECK-64-LABEL: foo2:
2829
; CHECK-64: movl $10, %eax
2930
; CHECK-64-NOT: movabsq ${{.*}}, %rax
30-
31+
;
3132
; CHECK-32-LABEL: foo2:
3233
; CHECK-32: movl $10, %eax
3334
; CHECK-32-NOT: movl ${{.*}}, %eax
@@ -42,7 +43,7 @@ define i32 @foo3(i32 inreg %x) nounwind {
4243
; CHECK-64-LABEL: foo3:
4344
; CHECK-64: movabsq $50000000{{..}}, %rax
4445
; CHECK-64-NEXT: subq %rax, %rsp
45-
46+
;
4647
; CHECK-32-LABEL: foo3:
4748
; CHECK-32: ud2
4849
; CHECK-32-NOT: movl ${{.*}}, %eax

0 commit comments

Comments
 (0)