From 22088bb102c9ee149b11e21ff53b1241a354cf58 Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Wed, 2 Feb 2005 15:05:33 +0000 Subject: [PATCH] fix loading of floats git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19997 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Alpha/AlphaISelPattern.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index b641d19ac3a..a3570bc8152 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) { -- 2.34.1