2007-04-14 20:13:02 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
2007-08-15 13:36:28 +00:00
|
|
|
; RUN: grep shufflevec | count 1
|
2007-04-14 20:13:02 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
|
|
|
; RUN: not grep insertelement
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
|
|
|
; RUN: not grep extractelement
|
2007-04-15 07:38:21 +00:00
|
|
|
; END.
|
2006-04-27 21:13:58 +00:00
|
|
|
|
|
|
|
<4 x float> %test(<4 x float> %tmp, <4 x float> %tmp1) {
|
|
|
|
%tmp4 = extractelement <4 x float> %tmp, uint 1 ; <float> [#uses=1]
|
|
|
|
%tmp2 = extractelement <4 x float> %tmp, uint 3 ; <float> [#uses=1]
|
|
|
|
%tmp1 = extractelement <4 x float> %tmp1, uint 0 ; <float> [#uses=1]
|
|
|
|
%tmp128 = insertelement <4 x float> undef, float %tmp4, uint 0 ; <<4 x float>> [#uses=1]
|
|
|
|
%tmp130 = insertelement <4 x float> %tmp128, float undef, uint 1 ; <<4 x float>> [#uses=1]
|
|
|
|
%tmp132 = insertelement <4 x float> %tmp130, float %tmp2, uint 2 ; <<4 x float>> [#uses=1]
|
|
|
|
%tmp134 = insertelement <4 x float> %tmp132, float %tmp1, uint 3 ; <<4 x float>> [#uses=1]
|
|
|
|
ret <4 x float> %tmp134
|
|
|
|
}
|