1 ; RUN: llc < %s -march=ve -mattr=+vpu | FileCheck %s
3 ; Function Attrs: norecurse nounwind readnone
4 ; Check that a single-element insertion is lowered to a insert_vector_elt node for isel.
5 define fastcc <256 x i32> @expand_single_elem_build_vec(i32 %x, i32 %y) {
6 ; CHECK-LABEL: expand_single_elem_build_vec:
8 ; CHECK-NEXT: and %s0, %s0, (32)0
9 ; CHECK-NEXT: lsv %v0(42), %s0
10 ; CHECK-NEXT: b.l.t (, %s10)
11 %r = insertelement <256 x i32> undef, i32 %x, i32 42