summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/segmented-stacks.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-01-11 18:23:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-01-11 18:23:35 +0000
commit313c7038319422cff0b2ea1015e180575cab4b7a (patch)
tree51d06b9448edca3aa1f91171a320d497d67e48ec /test/CodeGen/X86/segmented-stacks.ll
parentbcb55ce3862bbbedac4e09d7099c9e0efc434e4b (diff)
downloadllvm-313c7038319422cff0b2ea1015e180575cab4b7a.tar.gz
llvm-313c7038319422cff0b2ea1015e180575cab4b7a.tar.bz2
llvm-313c7038319422cff0b2ea1015e180575cab4b7a.tar.xz
Use unsigned comparison in segmented stack prologue.
This is a comparison of two addresses, and GCC does the comparison unsigned. Patch by Brian Anderson. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/segmented-stacks.ll')
-rw-r--r--test/CodeGen/X86/segmented-stacks.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/segmented-stacks.ll b/test/CodeGen/X86/segmented-stacks.ll
index 7854cbd060..27537c085c 100644
--- a/test/CodeGen/X86/segmented-stacks.ll
+++ b/test/CodeGen/X86/segmented-stacks.ll
@@ -25,6 +25,7 @@ false:
; X32: test_basic:
; X32: cmpl %gs:48, %esp
+; X32-NEXT: ja .LBB0_2
; X32: pushl $4
; X32-NEXT: pushl $12
@@ -45,6 +46,7 @@ false:
; X64: test_basic:
; X64: cmpq %fs:112, %rsp
+; X64-NEXT: ja .LBB0_2
; X64: movabsq $24, %r10
; X64-NEXT: movabsq $0, %r11
@@ -69,6 +71,7 @@ define i32 @test_nested(i32 * nest %closure, i32 %other) {
ret i32 %result
; X32: cmpl %gs:48, %esp
+; X32-NEXT: ja .LBB1_2
; X32: pushl $4
; X32-NEXT: pushl $0
@@ -76,6 +79,7 @@ define i32 @test_nested(i32 * nest %closure, i32 %other) {
; X32-NEXT: ret
; X64: cmpq %fs:112, %rsp
+; X64-NEXT: ja .LBB1_2
; X64: movq %r10, %rax
; X64-NEXT: movabsq $0, %r10
@@ -93,6 +97,7 @@ define void @test_large() {
; X32: leal -40012(%esp), %ecx
; X32-NEXT: cmpl %gs:48, %ecx
+; X32-NEXT: ja .LBB2_2
; X32: pushl $0
; X32-NEXT: pushl $40012
@@ -101,6 +106,7 @@ define void @test_large() {
; X64: leaq -40008(%rsp), %r11
; X64-NEXT: cmpq %fs:112, %r11
+; X64-NEXT: ja .LBB2_2
; X64: movabsq $40008, %r10
; X64-NEXT: movabsq $0, %r11