aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fp128-store.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fp128-store.ll')
-rw-r--r--test/CodeGen/X86/fp128-store.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fp128-store.ll b/test/CodeGen/X86/fp128-store.ll
new file mode 100644
index 0000000000000..ca3af637cff58
--- /dev/null
+++ b/test/CodeGen/X86/fp128-store.ll
@@ -0,0 +1,14 @@
+; RUN: llc < %s -O2 -mtriple=x86_64-linux-android -mattr=+mmx | FileCheck %s
+; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx | FileCheck %s
+
+; __float128 myFP128 = 1.0L; // x86_64-linux-android
+@myFP128 = global fp128 0xL00000000000000003FFF000000000000, align 16
+
+define void @set_FP128(fp128 %x) {
+entry:
+ store fp128 %x, fp128* @myFP128, align 16
+ ret void
+; CHECK-LABEL: set_FP128:
+; CHECK: movaps %xmm0, myFP128(%rip)
+; CHECK-NEXT: retq
+}