llvm/llvm/test/Transforms/SLPVectorizer/slp-non-pow-2-insertelement.ll

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -passes=slp-vectorizer < %s | FileCheck %s

define void @PR58863() {
; CHECK-LABEL: @PR58863(
; CHECK-NEXT:  entry:
; CHECK-NEXT:    [[MUL_I:%.*]] = fmul float poison, poison
; CHECK-NEXT:    [[MUL11_I:%.*]] = fmul float poison, poison
; CHECK-NEXT:    [[I:%.*]] = insertelement <3 x float> <float poison, float 0.000000e+00, float poison>, float [[MUL_I]], i64 0
; CHECK-NEXT:    [[I1:%.*]] = insertelement <3 x float> [[I]], float [[MUL11_I]], i64 2
; CHECK-NEXT:    ret void
;
entry:
  %mul.i = fmul float poison, poison
  %mul11.i = fmul float poison, poison
  %i = insertelement <3 x float> <float poison, float 0.000000e+00, float poison>, float %mul.i, i64 0
  %i1 = insertelement <3 x float> %i, float %mul11.i, i64 2
  ret void
}