summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorChristian Pirker <cpirker@a-bix.com>2014-06-01 09:30:52 +0000
committerChristian Pirker <cpirker@a-bix.com>2014-06-01 09:30:52 +0000
commit762b2c624f595024084016d29007cc3774d5edbc (patch)
tree9138bfefe555b68be6cd769b1c045ea0ab6c6787 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent639625e9f44e11e8db12cf834e667de3a5c1bcd5 (diff)
downloadbcm5719-llvm-762b2c624f595024084016d29007cc3774d5edbc.tar.gz
bcm5719-llvm-762b2c624f595024084016d29007cc3774d5edbc.zip
ARMEB: Fix function return type f64
Reviewed at http://reviews.llvm.org/D3968 llvm-svn: 209990
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index a7a47d972cb..eed523be3f3 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -8315,6 +8315,8 @@ static SDValue PerformVMOVRRDCombine(SDNode *N,
std::min(4U, LD->getAlignment() / 2));
DAG.ReplaceAllUsesOfValueWith(SDValue(LD, 1), NewLD2.getValue(1));
+ if (DCI.DAG.getTargetLoweringInfo().isBigEndian())
+ std::swap (NewLD1, NewLD2);
SDValue Result = DCI.CombineTo(N, NewLD1, NewLD2);
DCI.RemoveFromWorklist(LD);
DAG.DeleteNode(LD);
OpenPOWER on IntegriCloud