diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-06 15:35:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-06 15:35:32 +0000 |
commit | 55e958746901ef8c04f370e746a7538137d0bcf8 (patch) | |
tree | 2d23220ec2267d39dbb9cdd9e23cb630ee35980c /lib/Target/ARM/ARMCallingConv.td | |
parent | e52e9d60456073dddd691ae94c09b790f4bc26d5 (diff) | |
download | external_llvm-55e958746901ef8c04f370e746a7538137d0bcf8.zip external_llvm-55e958746901ef8c04f370e746a7538137d0bcf8.tar.gz external_llvm-55e958746901ef8c04f370e746a7538137d0bcf8.tar.bz2 |
Fix eabi calling convention when a 64 bit value shadows r3.
Without this what was happening was:
* R3 is not marked as "used"
* ARM backend thinks it has to save it to the stack because of vaarg
* Offset computation correctly ignores it
* Offsets are wrong
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMCallingConv.td')
-rw-r--r-- | lib/Target/ARM/ARMCallingConv.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMCallingConv.td b/lib/Target/ARM/ARMCallingConv.td index 8fdb07f..5c5100f 100644 --- a/lib/Target/ARM/ARMCallingConv.td +++ b/lib/Target/ARM/ARMCallingConv.td @@ -68,7 +68,7 @@ def CC_ARM_AAPCS_Common : CallingConv<[ "ArgFlags.getOrigAlign() != 8", CCAssignToReg<[R0, R1, R2, R3]>>>, - CCIfType<[i32], CCIfAlign<"8", CCAssignToStack<4, 8>>>, + CCIfType<[i32], CCIfAlign<"8", CCAssignToStackWithShadow<4, 8, R3>>>, CCIfType<[i32, f32], CCAssignToStack<4, 4>>, CCIfType<[f64], CCAssignToStack<8, 8>>, CCIfType<[v2f64], CCAssignToStack<16, 8>> |