blob: 847e2095f4c53a822b2e74dbb74e9863829f3604 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86-64 | grep {movq.*(%rsi), %rax}
2; RUN: llc < %s -march=x86 -mattr=+sse2 | grep {movsd.*(%eax),}
Evan Cheng536e6672009-03-12 05:59:15 +00003
Evan Cheng826af202009-03-12 17:07:39 +00004; Uses movsd to load / store i64 values if sse2 is available.
Evan Cheng536e6672009-03-12 05:59:15 +00005
6; rdar://6659858
7
8define void @foo(i64* %x, i64* %y) nounwind {
9entry:
10 %tmp1 = load i64* %y, align 8 ; <i64> [#uses=1]
11 store i64 %tmp1, i64* %x, align 8
12 ret void
13}