1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=ve-unknown-unknown -mattr=+vpu | FileCheck %s
4 define fastcc <256 x i1> @brd_v256i1_s(i1 %s) {
5 ; CHECK-LABEL: brd_v256i1_s:
7 ; CHECK-NEXT: and %s0, %s0, (32)0
8 ; CHECK-NEXT: lea %s1, 256
10 ; CHECK-NEXT: vbrd %v0, %s0
11 ; CHECK-NEXT: vbrd %v1, 0
12 ; CHECK-NEXT: vcmpu.w %v0, %v0, %v1
13 ; CHECK-NEXT: vfmk.w.ne %vm1, %v0
14 ; CHECK-NEXT: b.l.t (, %s10)
15 %val = insertelement <256 x i1> undef, i1 %s, i32 0
16 %ret = shufflevector <256 x i1> %val, <256 x i1> undef, <256 x i32> zeroinitializer
20 define fastcc <256 x i1> @brd_v256i1_zero() {
21 ; CHECK-LABEL: brd_v256i1_zero:
23 ; CHECK-NEXT: xorm %vm1, %vm0, %vm0
24 ; CHECK-NEXT: b.l.t (, %s10)
25 %val = insertelement <256 x i1> undef, i1 0, i32 0
26 %ret = shufflevector <256 x i1> %val, <256 x i1> undef, <256 x i32> zeroinitializer
30 define fastcc <256 x i1> @brd_v256i1_one() {
31 ; CHECK-LABEL: brd_v256i1_one:
33 ; CHECK-NEXT: andm %vm1, %vm0, %vm0
34 ; CHECK-NEXT: b.l.t (, %s10)
35 %val = insertelement <256 x i1> undef, i1 1, i32 0
36 %ret = shufflevector <256 x i1> %val, <256 x i1> undef, <256 x i32> zeroinitializer