fix loading of floats
authorAndrew Lenharth <andrewl@lenharth.org>
Wed, 2 Feb 2005 15:05:33 +0000 (15:05 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Wed, 2 Feb 2005 15:05:33 +0000 (15:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19997 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelPattern.cpp

index b641d19ac3ae81d03619ab09069389b6b80851bc..a3570bc8152280ae3fcd5360d58155a2901fc4ce 100644 (file)
@@ -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) {