1
1
; RUN: llc < %s -mtriple=x86_64-linux-unknown -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-64
2
2
; 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
3
4
4
5
; Test that a large stack offset uses a single add/sub instruction to
5
6
; adjust the stack pointer.
@@ -11,7 +12,7 @@ define void @foo() nounwind {
11
12
; CHECK-64-NOT: subq $2147483647, %rsp
12
13
; CHECK-64: movabsq $50000000{{..}}, [[RAX:%r..]]
13
14
; CHECK-64-NEXT: addq [[RAX]], %rsp
14
-
15
+ ;
15
16
; CHECK-32-LABEL: foo:
16
17
; CHECK-32: ud2
17
18
; CHECK-32-NOT: subl $2147483647, %esp
@@ -27,7 +28,7 @@ define i32 @foo2() nounwind {
27
28
; CHECK-64-LABEL: foo2:
28
29
; CHECK-64: movl $10, %eax
29
30
; CHECK-64-NOT: movabsq ${{.*}}, %rax
30
-
31
+ ;
31
32
; CHECK-32-LABEL: foo2:
32
33
; CHECK-32: movl $10, %eax
33
34
; CHECK-32-NOT: movl ${{.*}}, %eax
@@ -42,7 +43,7 @@ define i32 @foo3(i32 inreg %x) nounwind {
42
43
; CHECK-64-LABEL: foo3:
43
44
; CHECK-64: movabsq $50000000{{..}}, %rax
44
45
; CHECK-64-NEXT: subq %rax, %rsp
45
-
46
+ ;
46
47
; CHECK-32-LABEL: foo3:
47
48
; CHECK-32: ud2
48
49
; CHECK-32-NOT: movl ${{.*}}, %eax
0 commit comments