mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-06 10:38:54 +00:00
fix loading of floats
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19997 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ab791376de
commit
22088bb102
@ -486,7 +486,9 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DestType == MVT::f64 || DestType == MVT::f32)
|
if (DestType == MVT::f64 || DestType == MVT::f32 ||
|
||||||
|
(opcode == ISD::LOAD &&
|
||||||
|
(N.getValue(0).getValueType() == MVT::f32 || N.getValue(0).getValueType() == MVT::f64)))
|
||||||
return SelectExprFP(N, Result);
|
return SelectExprFP(N, Result);
|
||||||
|
|
||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user