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