diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-12-14 17:55:03 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-12-14 17:55:03 +0000 |
commit | 6762f8f302f5c01a26e848cdcac20bddde0dd22c (patch) | |
tree | 18694e2a421824199f9f063758eb9745ff1317f1 /lib/Target/ARM/ARMFastISel.cpp | |
parent | 64ac91b4b6e62f82d608fe9602b28c00171f88a0 (diff) |
VFP2 is required for FP loads. Noticed by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index df973a7f0f..a98dfc39bc 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -1016,6 +1016,7 @@ bool ARMFastISel::ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr, 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 @@ bool ARMFastISel::ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr, } break; case MVT::f64: + if (!Subtarget->hasVFP2()) return false; // FIXME: Unaligned loads need special handling. Doublewords require // word-alignment. if (Alignment && Alignment < 4) |