Temporarily revert r58979 and related patch. It's causing a failure in X86 bootstrap:
[oota-llvm.git] / test / CodeGen / X86 / vec_loadhl.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movlpd
2 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movhpd
3 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep movsd
4
5 define void @t1(<2 x double>* %r, <2 x double>* %A, double %B) nounwind  {
6         %tmp3 = load <2 x double>* %A, align 16
7         %tmp7 = insertelement <2 x double> undef, double %B, i32 0
8         %tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 2, i32 1 >
9         store <2 x double> %tmp9, <2 x double>* %r, align 16
10         ret void
11 }
12
13 define void @t2(<2 x double>* %r, <2 x double>* %A, double %B) nounwind  {
14         %tmp3 = load <2 x double>* %A, align 16
15         %tmp7 = insertelement <2 x double> undef, double %B, i32 0
16         %tmp9 = shufflevector <2 x double> %tmp3, <2 x double> %tmp7, <2 x i32> < i32 0, i32 2 >
17         store <2 x double> %tmp9, <2 x double>* %r, align 16
18         ret void
19 }