mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
Add a v2f64 splat (using movlhps) test case.
llvm-svn: 26962
This commit is contained in:
parent
7eaf8fa583
commit
266e00ff52
11
test/Regression/CodeGen/X86/vector_splat_v2f64.ll
Normal file
11
test/Regression/CodeGen/X86/vector_splat_v2f64.ll
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user