diff options
author | Dale Johannesen <dalej@apple.com> | 2007-10-19 20:29:00 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-10-19 20:29:00 +0000 |
commit | b6210fc92b643a5440d8373b5f36b6e579b5feb8 (patch) | |
tree | c2dfd8a3f65a20b771269b822cddf39e5c43fab8 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 4f78af8d778bf41be0afa8e3c3db05f68483bc8a (diff) |
Redo "last ppc long double fix" as Chris wants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 8ffdf63df9..336cecbd2b 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -5443,7 +5443,8 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){ } else { MVT::ValueType EVT = LD->getLoadedVT(); - if (VT == MVT::f64 && EVT == MVT::f32) { + if ((VT == MVT::f64 && EVT == MVT::f32) || + (VT == MVT::ppcf128 && (EVT==MVT::f64 || EVT==MVT::f32))) { // f64 = EXTLOAD f32 should expand to LOAD, FP_EXTEND SDOperand Load = DAG.getLoad(EVT, Ch, Ptr, LD->getSrcValue(), SVOffset, isVolatile, Alignment); |