2008-03-01 10:15:35 +01:00
|
|
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
|
2007-08-15 15:36:28 +02:00
|
|
|
; RUN: grep shufflevec | count 1
|
2008-03-01 10:15:35 +01:00
|
|
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
|
2007-04-14 22:13:02 +02:00
|
|
|
; RUN: not grep insertelement
|
2008-03-01 10:15:35 +01:00
|
|
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
|
2007-04-14 22:13:02 +02:00
|
|
|
; RUN: not grep extractelement
|
2008-03-09 09:16:40 +01:00
|
|
|
; END.
|
2006-04-27 23:13:58 +02:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
define <4 x float> @test(<4 x float> %tmp, <4 x float> %tmp1) {
|
|
|
|
%tmp4 = extractelement <4 x float> %tmp, i32 1 ; <float> [#uses=1]
|
|
|
|
%tmp2 = extractelement <4 x float> %tmp, i32 3 ; <float> [#uses=1]
|
|
|
|
%tmp1.upgrd.1 = extractelement <4 x float> %tmp1, i32 0 ; <float> [#uses=1]
|
|
|
|
%tmp128 = insertelement <4 x float> undef, float %tmp4, i32 0 ; <<4 x float>> [#uses=1]
|
|
|
|
%tmp130 = insertelement <4 x float> %tmp128, float undef, i32 1 ; <<4 x float>> [#uses=1]
|
|
|
|
%tmp132 = insertelement <4 x float> %tmp130, float %tmp2, i32 2 ; <<4 x float>> [#uses=1]
|
|
|
|
%tmp134 = insertelement <4 x float> %tmp132, float %tmp1.upgrd.1, i32 3 ; <<4 x float>> [#uses=1]
|
|
|
|
ret <4 x float> %tmp134
|
2006-04-27 23:13:58 +02:00
|
|
|
}
|
2008-03-01 10:15:35 +01:00
|
|
|
|