1; RUN: llc -march=hexagon < %s | FileCheck %s
2
3; Check that this doesn't crash. The select should be broken up into two
4; vmux instructions.
5
6; CHECK-LABEL: foo:
7; CHECK: vmux
8; CHECK: vmux
9define <256 x i8> @foo(<256 x i8> %a0, <256 x i8> %a1) #0 {
10  %v0 = icmp slt <256 x i8> %a0, zeroinitializer
11  %v1 = select <256 x i1> %v0, <256 x i8> %a1, <256 x i8> %a0
12  ret <256 x i8> %v1
13}
14
15attributes #0 = { "target-cpu"="hexagonv62" "target-features"="+hvx,+hvx-length128b" }
16