diff options
author | Eric Christopher <echristo@apple.com> | 2010-03-02 06:25:00 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-03-02 06:25:00 +0000 |
commit | 8d17882efae2706c4a7a09db28ef3abb66c9dce0 (patch) | |
tree | 561e92a303b21d49aa820c7b25cae1a3aa73b036 | |
parent | 17b4b172eb57c28f82a6ee3a982a7632f60e8967 (diff) |
Only save vector registers if we've defined for the vector registers.
Fixes PR5309.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97554 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMJITInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMJITInfo.cpp b/lib/Target/ARM/ARMJITInfo.cpp index bef5a0612f..1aa1d47c1e 100644 --- a/lib/Target/ARM/ARMJITInfo.cpp +++ b/lib/Target/ARM/ARMJITInfo.cpp @@ -60,7 +60,7 @@ extern "C" { // whole compilation callback doesn't exist as far as the caller is // concerned, so we can't just preserve the callee saved regs. "stmdb sp!, {r0, r1, r2, r3, lr}\n" -#ifndef __SOFTFP__ +#ifdef __VFP_FP__ "fstmfdd sp!, {d0, d1, d2, d3, d4, d5, d6, d7}\n" #endif // The LR contains the address of the stub function on entry. @@ -83,7 +83,7 @@ extern "C" { // 6-20 | D0..D7 | Saved VFP registers // +--------+ // -#ifndef __SOFTFP__ +#ifdef __VFP_FP__ // Restore VFP caller-saved registers. "fldmfdd sp!, {d0, d1, d2, d3, d4, d5, d6, d7}\n" #endif |