mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
Add a vector shuffle test case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14aed5e66b
commit
23ea6078e9
10
test/CodeGen/X86/vec_shuffle.ll
Normal file
10
test/CodeGen/X86/vec_shuffle.ll
Normal file
@ -0,0 +1,10 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep shufps
|
||||
|
||||
void %test_v4sf(<4 x float>* %P, float %X, float %Y) {
|
||||
%tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0
|
||||
%tmp2 = insertelement <4 x float> %tmp, float %X, uint 1
|
||||
%tmp4 = insertelement <4 x float> %tmp2, float %Y, uint 2
|
||||
%tmp6 = insertelement <4 x float> %tmp4, float %Y, uint 3
|
||||
store <4 x float> %tmp6, <4 x float>* %P
|
||||
ret void
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user