summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll
blob: 99ecd35a09ec1de6ed5122280493a238cf31d4ff (plain)
1
2
3
4
5
6
7
; RUN: llvm-as < %s | opt -instcombine -disable-output

float %test(<4 x float> %V) {
	%V2 = insertelement <4 x float> %V, float 1.0, uint 3
	%R = extractelement <4 x float> %V2, uint 2
	ret float %R
}