aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/segmented-stacks.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-13 08:24:19 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-13 08:24:19 +0000
commit4e68054b20725f6ec1cac33630258f749fe5debe (patch)
tree567971bd64446d5d55dfa774d96ce8f9c87601b6 /test/CodeGen/X86/segmented-stacks.ll
parent1203fe7fc80d0fe16a30ae3ddb9b0823b17f39ce (diff)
downloadexternal_llvm-4e68054b20725f6ec1cac33630258f749fe5debe.zip
external_llvm-4e68054b20725f6ec1cac33630258f749fe5debe.tar.gz
external_llvm-4e68054b20725f6ec1cac33630258f749fe5debe.tar.bz2
More closely follow libgcc, which has code after the `ret' instruction to
release the stack segment and reset the stack pointer. Place the code in its own MBB to make the verifier happy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/segmented-stacks.ll')
-rw-r--r--test/CodeGen/X86/segmented-stacks.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/segmented-stacks.ll b/test/CodeGen/X86/segmented-stacks.ll
index 37f082c..ecdb00d 100644
--- a/test/CodeGen/X86/segmented-stacks.ll
+++ b/test/CodeGen/X86/segmented-stacks.ll
@@ -81,7 +81,7 @@ define i32 @test_nested(i32 * nest %closure, i32 %other) {
; X64-NEXT: movabsq $0, %r10
; X64-NEXT: movabsq $0, %r11
; X64-NEXT: callq __morestack
-; X64-NEXT: movq %rax, %r10
; X64-NEXT: ret
+; X64: movq %rax, %r10
}