summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM
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
commit27e80698efbdad5eb961fca741673740d0919a41 (patch)
tree4f3f5d16b615a1901962ec5a7b8e5c3b517cb6b2 /test/CodeGen/ARM
parent05db56c676b2bd03eae3672d8849b1851256d1ac (diff)
downloadllvm-27e80698efbdad5eb961fca741673740d0919a41.tar.gz
llvm-27e80698efbdad5eb961fca741673740d0919a41.tar.bz2
llvm-27e80698efbdad5eb961fca741673740d0919a41.tar.xz
ARMEB: Fix function return type f64
Reviewed at http://reviews.llvm.org/D3968 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
-rw-r--r--test/CodeGen/ARM/big-endian-ret-f64.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/big-endian-ret-f64.ll b/test/CodeGen/ARM/big-endian-ret-f64.ll
new file mode 100644
index 0000000000..614bfc0a5b
--- /dev/null
+++ b/test/CodeGen/ARM/big-endian-ret-f64.ll
@@ -0,0 +1,12 @@
+; RUN: llc -mtriple=armebv7a-eabi %s -O0 -o - | FileCheck %s
+; RUN: llc -mtriple=armebv8a-eabi %s -O0 -o - | FileCheck %s
+
+define double @fn() {
+; CHECK-LABEL: fn
+; CHECK: ldr r0, [sp]
+; CHECK: ldr r1, [sp, #4]
+ %r = alloca double, align 8
+ %1 = load double* %r, align 8
+ ret double %1
+}
+