[llvm-commits] [llvm] r97554 - /llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
Eric Christopher
echristo at apple.com
Mon Mar 1 22:25:00 PST 2010
Author: echristo
Date: Tue Mar 2 00:25:00 2010
New Revision: 97554
URL: http://llvm.org/viewvc/llvm-project?rev=97554&view=rev
Log:
Only save vector registers if we've defined for the vector registers.
Fixes PR5309.
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=97554&r1=97553&r2=97554&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp Tue Mar 2 00:25:00 2010
@@ -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"
-#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 @@
// 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
More information about the llvm-commits
mailing list