mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
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
This commit is contained in:
parent
64ac91b4b6
commit
6762f8f302
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user