summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/i64-mem-copy.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/i64-mem-copy.ll')
-rw-r--r--test/CodeGen/X86/i64-mem-copy.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/i64-mem-copy.ll b/test/CodeGen/X86/i64-mem-copy.ll
new file mode 100644
index 000000000000..0d2b29c0b420
--- /dev/null
+++ b/test/CodeGen/X86/i64-mem-copy.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq.*(%rsi), %rax}
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep {movsd.*(%eax),}
+
+; Uses movsd to load / store i64 values if sse2 is available.
+
+; rdar://6659858
+
+define void @foo(i64* %x, i64* %y) nounwind {
+entry:
+ %tmp1 = load i64* %y, align 8 ; <i64> [#uses=1]
+ store i64 %tmp1, i64* %x, align 8
+ ret void
+}