1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv64 -mattr=+experimental-b -verify-machineinstrs < %s \
3 ; RUN: | FileCheck %s -check-prefix=RV64B
4 ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbb -verify-machineinstrs < %s \
5 ; RUN: | FileCheck %s -check-prefix=RV64ZBB
7 declare i32 @llvm.riscv.orc.b.i32(i32)
9 define signext i32 @orcb32(i32 signext %a) nounwind {
10 ; RV64B-LABEL: orcb32:
12 ; RV64B-NEXT: gorciw a0, a0, 7
15 ; RV64ZBB-LABEL: orcb32:
17 ; RV64ZBB-NEXT: orc.b a0, a0
18 ; RV64ZBB-NEXT: sext.w a0, a0
20 %tmp = call i32 @llvm.riscv.orc.b.i32(i32 %a)
24 declare i64 @llvm.riscv.orc.b.i64(i64)
26 define i64 @orcb64(i64 %a) nounwind {
27 ; RV64B-LABEL: orcb64:
29 ; RV64B-NEXT: orc.b a0, a0
32 ; RV64ZBB-LABEL: orcb64:
34 ; RV64ZBB-NEXT: orc.b a0, a0
36 %tmp = call i64 @llvm.riscv.orc.b.i64(i64 %a)