diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-02-02 15:05:33 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-02-02 15:05:33 +0000 |
commit | c7042c2d8bf9ae360469f216b09f9a2bacf17a79 (patch) | |
tree | 1c5430824ef778bb5d0f9025eedfc58b9533953e /llvm/lib/Target/Alpha/AlphaISelPattern.cpp | |
parent | fc9f14696638c1c2c673650e360bdb7b13dfab1f (diff) | |
download | bcm5719-llvm-c7042c2d8bf9ae360469f216b09f9a2bacf17a79.tar.gz bcm5719-llvm-c7042c2d8bf9ae360469f216b09f9a2bacf17a79.zip |
fix loading of floats
llvm-svn: 19997
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelPattern.cpp | 4 |
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) { |