llvm-6502/test/CodeGen
Evan Cheng ab5c703fdb Fix epilogue codegen to avoid leaving the stack pointer in an invalid
state. Previously Thumb2 would restore sp from fp like this:
mov sp, r7
sub, sp, #4
If an interrupt is taken after the 'mov' but before the 'sub', callee-saved
registers might be clobbered by the interrupt handler. Instead, try
restoring directly from sp:
add sp, #4
Or, if necessary (with VLA, etc.) use a scratch register to compute sp and
then restore it:
sub.w r4, r7, #8
mov sp, r7
rdar://8465407


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119977 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-22 18:12:04 +00:00
..
Alpha
ARM Fix epilogue codegen to avoid leaving the stack pointer in an invalid 2010-11-22 18:12:04 +00:00
Blackfin
CBackend
CellSPU Fix a bug with extractelement on SPU. 2010-11-22 16:28:26 +00:00
CPP
Generic Removing the useless test that I added recently. It was meant as an example, but not complicated enough to merit another test. 2010-11-20 07:26:51 +00:00
MBlaze Implement branch analysis in the MBlaze backend. 2010-11-21 21:53:36 +00:00
Mips
MSP430
PowerPC
PTX Add simple arithmetics and %type directive for PTX 2010-11-17 08:08:49 +00:00
SPARC
SystemZ
Thumb Fix epilogue codegen to avoid leaving the stack pointer in an invalid 2010-11-22 18:12:04 +00:00
Thumb2 Fix epilogue codegen to avoid leaving the stack pointer in an invalid 2010-11-22 18:12:04 +00:00
X86 Implement the "if (X == 6 || X == 4)" -> "if ((X|2) == 6)" optimization. 2010-11-22 09:45:38 +00:00
XCore
thumb2-mul.ll