diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-10-26 21:12:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-10-26 21:12:27 +0000 |
commit | 66393c127d0e1f8f1cb4c9b878c669fcd1457db7 (patch) | |
tree | e5765e4444ae2d0b42b716d64edd79ad87f7724f /llvm/test/CodeGen | |
parent | c9abbe2b3e1f36a3948c9c5da4cf88cfa9645239 (diff) | |
download | bcm5719-llvm-66393c127d0e1f8f1cb4c9b878c669fcd1457db7.tar.gz bcm5719-llvm-66393c127d0e1f8f1cb4c9b878c669fcd1457db7.zip |
This commit introduces two fake instructions MORESTACK_RET and
MORESTACK_RET_RESTORE_R10; which are lowered to a RET and a RET
followed by a MOV respectively. Having a fake instruction prevents
the verifier from seeing a MachineBasicBlock end with a
non-terminator (MOV). It also prevents the rather eccentric case of a
MachineBasicBlock ending with RET but having successors nevertheless.
Patch by Sanjoy Das.
llvm-svn: 143062
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/X86/segmented-stacks.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/segmented-stacks.ll b/llvm/test/CodeGen/X86/segmented-stacks.ll index ecdb00d5d1e..3f0067e2926 100644 --- a/llvm/test/CodeGen/X86/segmented-stacks.ll +++ b/llvm/test/CodeGen/X86/segmented-stacks.ll @@ -82,6 +82,6 @@ define i32 @test_nested(i32 * nest %closure, i32 %other) { ; X64-NEXT: movabsq $0, %r11 ; X64-NEXT: callq __morestack ; X64-NEXT: ret -; X64: movq %rax, %r10 +; X64-NEXT: movq %rax, %r10 } |