Add a v2f64 splat (using movlhps) test case.

llvm-svn: 26962
This commit is contained in:
Evan Cheng 2006-03-22 20:29:11 +00:00
parent 7eaf8fa583
commit 266e00ff52

View File

@ -0,0 +1,11 @@
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movlhps
void %test(<2 x double>* %P, <2 x double>* %Q, double %X) {
entry:
%tmp = insertelement <2 x double> zeroinitializer, double %X, uint 0 ; <<2 x double>> [#uses=1]
%tmp2 = insertelement <2 x double> %tmp, double %X, uint 1 ; <<2 x double>> [#uses=1]
%tmp4 = load <2 x double>* %Q ; <<2 x double>> [#uses=1]
%tmp6 = mul <2 x double> %tmp4, %tmp2 ; <<2 x double>> [#uses=1]
store <2 x double> %tmp6, <2 x double>* %P
ret void
}