Skip to content

Commit 762b2c6

Browse files
author
Christian Pirker
committedJun 1, 2014
ARMEB: Fix function return type f64
Reviewed at http://reviews.llvm.org/D3968 llvm-svn: 209990
1 parent 639625e commit 762b2c6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
 

‎llvm/lib/Target/ARM/ARMISelLowering.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -8315,6 +8315,8 @@ static SDValue PerformVMOVRRDCombine(SDNode *N,
83158315
std::min(4U, LD->getAlignment() / 2));
83168316

83178317
DAG.ReplaceAllUsesOfValueWith(SDValue(LD, 1), NewLD2.getValue(1));
8318+
if (DCI.DAG.getTargetLoweringInfo().isBigEndian())
8319+
std::swap (NewLD1, NewLD2);
83188320
SDValue Result = DCI.CombineTo(N, NewLD1, NewLD2);
83198321
DCI.RemoveFromWorklist(LD);
83208322
DAG.DeleteNode(LD);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; RUN: llc -mtriple=armebv7a-eabi %s -O0 -o - | FileCheck %s
2+
; RUN: llc -mtriple=armebv8a-eabi %s -O0 -o - | FileCheck %s
3+
4+
define double @fn() {
5+
; CHECK-LABEL: fn
6+
; CHECK: ldr r0, [sp]
7+
; CHECK: ldr r1, [sp, #4]
8+
%r = alloca double, align 8
9+
%1 = load double* %r, align 8
10+
ret double %1
11+
}
12+

0 commit comments

Comments
 (0)
Please sign in to comment.