summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-09 06:53:48 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-09 06:53:48 +0000
commit910139f9ca53fc20a680d51ae61bb1e072095141 (patch)
treee81c343258b9cd4068b9008f1820962721174b85 /test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll
parent1945b7b5c5da39b89c2a2d3083d02e2aabf3cf98 (diff)
downloadllvm-910139f9ca53fc20a680d51ae61bb1e072095141.tar.gz
llvm-910139f9ca53fc20a680d51ae61bb1e072095141.tar.bz2
llvm-910139f9ca53fc20a680d51ae61bb1e072095141.tar.xz
Targets sometimes assign fixed stack object to spill certain callee-saved
registers based on dynamic conditions. For example, X86 EBP/RBP, when used as frame register has to be spilled in the first fixed object. It should inform PEI this so it doesn't get allocated another stack object. Also, it should not be spilled as other callee-saved registers but rather its spilling and restoring are being handled by emitPrologue and emitEpilogue. Avoid spilling it twice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll')
-rw-r--r--test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll b/test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll
index f48b1d3adf..ee3169af04 100644
--- a/test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll
+++ b/test/CodeGen/X86/2004-02-13-FrameReturnAddress.ll
@@ -1,4 +1,6 @@
; RUN: llvm-as < %s | llc -march=x86 | grep {(%esp}
+; RUN: llvm-as < %s | llc -march=x86 | grep {pushl %ebp} | count 1
+; RUN: llvm-as < %s | llc -march=x86 | grep {popl %ebp} | count 1
declare i8* @llvm.returnaddress(i32)