2006-03-30-ExtractElement.ll 297 B

12345678
  1. ; RUN: opt < %s -instcombine -disable-output
  2. define float @test(<4 x float> %V) {
  3. %V2 = insertelement <4 x float> %V, float 1.000000e+00, i32 3 ; <<4 x float>> [#uses=1]
  4. %R = extractelement <4 x float> %V2, i32 2 ; <float> [#uses=1]
  5. ret float %R
  6. }