llvm-6502/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll
2006-12-02 04:23:10 +00:00

8 lines
217 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | 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
}