1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
4 declare i32 @llvm.loongarch.lsx.bz.v(<16 x i8>)
6 define i32 @lsx_bz_v(<16 x i8> %va) nounwind {
7 ; CHECK-LABEL: lsx_bz_v:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: vseteqz.v $fcc0, $vr0
10 ; CHECK-NEXT: bcnez $fcc0, .LBB0_2
11 ; CHECK-NEXT: # %bb.1: # %entry
12 ; CHECK-NEXT: addi.w $a0, $zero, 0
14 ; CHECK-NEXT: .LBB0_2: # %entry
15 ; CHECK-NEXT: addi.w $a0, $zero, 1
18 %res = call i32 @llvm.loongarch.lsx.bz.v(<16 x i8> %va)
22 declare i32 @llvm.loongarch.lsx.bnz.v(<16 x i8>)
24 define i32 @lsx_bnz_v(<16 x i8> %va) nounwind {
25 ; CHECK-LABEL: lsx_bnz_v:
26 ; CHECK: # %bb.0: # %entry
27 ; CHECK-NEXT: vsetnez.v $fcc0, $vr0
28 ; CHECK-NEXT: bcnez $fcc0, .LBB1_2
29 ; CHECK-NEXT: # %bb.1: # %entry
30 ; CHECK-NEXT: addi.w $a0, $zero, 0
32 ; CHECK-NEXT: .LBB1_2: # %entry
33 ; CHECK-NEXT: addi.w $a0, $zero, 1
36 %res = call i32 @llvm.loongarch.lsx.bnz.v(<16 x i8> %va)