aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-02-02 15:05:33 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-02-02 15:05:33 +0000
commit22088bb102c9ee149b11e21ff53b1241a354cf58 (patch)
tree3a315971e8d828bb53693bc5ea4e47a4860d442c /lib/Target/Alpha/AlphaISelPattern.cpp
parentab791376de9b20f40dfddc14142f6ed5a278e2b6 (diff)
fix loading of floats
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index b641d19ac3..a3570bc815 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/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) {