diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-01-03 22:53:22 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-01-03 22:53:22 +0000 |
commit | 65089fc6c73211e7d76307efe02c42b6f83a0dc2 (patch) | |
tree | 308aa11202452f01146b281dbb3b9ae141d68a81 /llvm/test/CodeGen/X86/2009-09-10-SpillComments.ll | |
parent | 752a595655d3dfcdbffb44b4d6a94275c550e7fe (diff) | |
download | bcm5719-llvm-65089fc6c73211e7d76307efe02c42b6f83a0dc2.tar.gz bcm5719-llvm-65089fc6c73211e7d76307efe02c42b6f83a0dc2.zip |
Use pushq / popq instead of subq $8, %rsp / addq $8, %rsp to adjust stack in
prologue and epilogue if the adjustment is 8. Similarly, use pushl / popl if
the adjustment is 4 in 32-bit mode.
In the epilogue, takes care to pop to a caller-saved register that's not live
at the exit (either return or tailcall instruction).
rdar://8771137
llvm-svn: 122783
Diffstat (limited to 'llvm/test/CodeGen/X86/2009-09-10-SpillComments.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/2009-09-10-SpillComments.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/2009-09-10-SpillComments.ll b/llvm/test/CodeGen/X86/2009-09-10-SpillComments.ll index f9ca861c558..adac2033604 100644 --- a/llvm/test/CodeGen/X86/2009-09-10-SpillComments.ll +++ b/llvm/test/CodeGen/X86/2009-09-10-SpillComments.ll @@ -2,9 +2,9 @@ ; This test shouldn't require spills. -; CHECK: subq $8, %rsp +; CHECK: pushq ; CHECK-NOT: $rsp -; CHECK: addq $8, %rsp +; CHECK: popq %struct..0anon = type { i32 } %struct.rtvec_def = type { i32, [1 x %struct..0anon] } |