aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/big-endian-ret-f64.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/big-endian-ret-f64.ll')
-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 0000000..614bfc0
--- /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
+}
+