blob: 42c45531924603c9788b9d138ee0764927d9a128 [file] [log] [blame]
; RUN: llc < %s -march=ve -mattr=+vpu | FileCheck %s
; Function Attrs: norecurse nounwind readnone
; Check that a single-element insertion is lowered to a insert_vector_elt node for isel.
define fastcc <256 x i32> @expand_single_elem_build_vec(i32 %x, i32 %y) {
; CHECK-LABEL: expand_single_elem_build_vec:
; CHECK: # %bb.0:
; CHECK-NEXT: and %s0, %s0, (32)0
; CHECK-NEXT: lsv %v0(42), %s0
; CHECK-NEXT: b.l.t (, %s10)
%r = insertelement <256 x i32> undef, i32 %x, i32 42
ret <256 x i32> %r
}