1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll

9 lines
307 B
LLVM
Raw Normal View History

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