summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/Alpha/AlphaISelPattern.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
index b641d19ac3a..a3570bc8152 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -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);
switch (opcode) {
OpenPOWER on IntegriCloud