summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-03-02 06:25:00 +0000
committerEric Christopher <echristo@apple.com>2010-03-02 06:25:00 +0000
commit118dc6a6456e1c293584f4917f3b8e83e065cd5e (patch)
treebca7a1ccb59baab2e511af2d944475b468442620 /llvm
parente797fd0a84225222457dadde7c49bb7627ce2940 (diff)
downloadbcm5719-llvm-118dc6a6456e1c293584f4917f3b8e83e065cd5e.tar.gz
bcm5719-llvm-118dc6a6456e1c293584f4917f3b8e83e065cd5e.zip
Only save vector registers if we've defined for the vector registers.
Fixes PR5309. llvm-svn: 97554
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/ARM/ARMJITInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMJITInfo.cpp b/llvm/lib/Target/ARM/ARMJITInfo.cpp
index bef5a0612f4..1aa1d47c1e1 100644
--- a/llvm/lib/Target/ARM/ARMJITInfo.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud