summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMJITInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-01-16 02:16:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-01-16 02:16:37 +0000
commitbdfc582edfccb948b563677e2d82fee5f0ba96f6 (patch)
treebe2255025ac6a5beeb5394c544f728661a6dfeb2 /lib/Target/ARM/ARMJITInfo.cpp
parent5be935536f490003ecc8f93525063a859c7caf63 (diff)
downloadllvm-bdfc582edfccb948b563677e2d82fee5f0ba96f6.tar.gz
llvm-bdfc582edfccb948b563677e2d82fee5f0ba96f6.tar.bz2
llvm-bdfc582edfccb948b563677e2d82fee5f0ba96f6.tar.xz
ARMCompilationCallback should not save / restore vfp registers if vfp is not available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMJITInfo.cpp')
-rw-r--r--lib/Target/ARM/ARMJITInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMJITInfo.cpp b/lib/Target/ARM/ARMJITInfo.cpp
index 7ddcef975e..eda0c93366 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"
-#ifdef __APPLE__
+#ifndef __SOFTFP__
"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
// +--------+
//
-#ifdef __APPLE__
+#ifndef __SOFTFP__
// Restore VFP caller-saved registers.
"fldmfdd sp!, {d0, d1, d2, d3, d4, d5, d6, d7}\n"
#endif