Xamarin Public Jenkins (auto-signing) 8625704ad8 Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
2018-10-25 08:34:57 +00:00

11 lines
383 B
LLVM

; RUN: opt < %s -instcombine -S | grep "fadd float"
define float @test(<4 x float> %A, <4 x float> %B, float %f) {
%C = insertelement <4 x float> %A, float %f, i32 0 ; <%V> [#uses=1]
%D = fadd <4 x float> %C, %B ; <%V> [#uses=1]
%E = extractelement <4 x float> %D, i32 0 ; <float> [#uses=1]
ret float %E
}