[llvm-commits] [llvm] r146569 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Chad Rosier
mcrosier at apple.com
Wed Dec 14 09:55:03 PST 2011
Author: mcrosier
Date: Wed Dec 14 11:55:03 2011
New Revision: 146569
URL: http://llvm.org/viewvc/llvm-project?rev=146569&view=rev
Log:
VFP2 is required for FP loads. Noticed by inspection.
Modified:
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=146569&r1=146568&r2=146569&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Wed Dec 14 11:55:03 2011
@@ -1016,6 +1016,7 @@
RC = ARM::GPRRegisterClass;
break;
case MVT::f32:
+ if (!Subtarget->hasVFP2()) return false;
// Unaligned loads need special handling. Floats require word-alignment.
if (Alignment && Alignment < 4) {
needVMOV = true;
@@ -1028,6 +1029,7 @@
}
break;
case MVT::f64:
+ if (!Subtarget->hasVFP2()) return false;
// FIXME: Unaligned loads need special handling. Doublewords require
// word-alignment.
if (Alignment && Alignment < 4)
More information about the llvm-commits
mailing list