1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 < %s | FileCheck --check-prefix=RV32 %s
3 ; RUN: llc -mtriple=riscv64 < %s | FileCheck --check-prefix=RV64 %s
5 define void @bool_eq(i1 zeroext %a, i1 zeroext %b, ptr nocapture %c) nounwind {
7 ; RV32: # %bb.0: # %entry
8 ; RV32-NEXT: beq a0, a1, .LBB0_2
9 ; RV32-NEXT: # %bb.1: # %if.end
11 ; RV32-NEXT: .LBB0_2: # %if.then
14 ; RV64-LABEL: bool_eq:
15 ; RV64: # %bb.0: # %entry
16 ; RV64-NEXT: beq a0, a1, .LBB0_2
17 ; RV64-NEXT: # %bb.1: # %if.end
19 ; RV64-NEXT: .LBB0_2: # %if.then
23 br i1 %0, label %if.end, label %if.then
26 tail call void %c() #1
33 define void @bool_ne(i1 zeroext %a, i1 zeroext %b, ptr nocapture %c) nounwind {
34 ; RV32-LABEL: bool_ne:
35 ; RV32: # %bb.0: # %entry
36 ; RV32-NEXT: beq a0, a1, .LBB1_2
37 ; RV32-NEXT: # %bb.1: # %if.then
39 ; RV32-NEXT: .LBB1_2: # %if.end
42 ; RV64-LABEL: bool_ne:
43 ; RV64: # %bb.0: # %entry
44 ; RV64-NEXT: beq a0, a1, .LBB1_2
45 ; RV64-NEXT: # %bb.1: # %if.then
47 ; RV64-NEXT: .LBB1_2: # %if.end
51 br i1 %cmp, label %if.then, label %if.end
54 tail call void %c() #1