bolt/deps/llvm-18.1.8/llvm/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll
2025-02-14 19:21:04 +01:00

8 lines
304 B
LLVM

; RUN: opt < %s -passes=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
}