[llvm-commits] [llvm] r62299 - /llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
Evan Cheng
evan.cheng at apple.com
Thu Jan 15 18:16:37 PST 2009
Author: evancheng
Date: Thu Jan 15 20:16:37 2009
New Revision: 62299
URL: http://llvm.org/viewvc/llvm-project?rev=62299&view=rev
Log:
ARMCompilationCallback should not save / restore vfp registers if vfp is not available.
Modified:
llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp?rev=62299&r1=62298&r2=62299&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp Thu Jan 15 20:16:37 2009
@@ -60,7 +60,7 @@
// 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 @@
// 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
More information about the llvm-commits
mailing list