xref: /aosp_15_r20/external/llvm/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: opt < %s -instcombine -disable-output
2
3define float @test(<4 x float> %V) {
4        %V2 = insertelement <4 x float> %V, float 1.000000e+00, i32 3           ; <<4 x float>> [#uses=1]
5        %R = extractelement <4 x float> %V2, i32 2              ; <float> [#uses=1]
6        ret float %R
7}
8
9