1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -mattr=+zimop -verify-machineinstrs < %s \
3 ; RUN: | FileCheck %s -check-prefix=RV32ZIMOP
5 declare i32 @llvm.riscv.mopr.i32(i32 %a, i32 %b)
7 define i32 @mopr0_32(i32 %a) nounwind {
8 ; RV32ZIMOP-LABEL: mopr0_32:
10 ; RV32ZIMOP-NEXT: mop.r.0 a0, a0
12 %tmp = call i32 @llvm.riscv.mopr.i32(i32 %a, i32 0)
16 define i32 @mopr31_32(i32 %a) nounwind {
17 ; RV32ZIMOP-LABEL: mopr31_32:
19 ; RV32ZIMOP-NEXT: mop.r.31 a0, a0
21 %tmp = call i32 @llvm.riscv.mopr.i32(i32 %a, i32 31)
25 declare i32 @llvm.riscv.moprr.i32(i32 %a, i32 %b, i32 %c)
27 define i32 @moprr0_32(i32 %a, i32 %b) nounwind {
28 ; RV32ZIMOP-LABEL: moprr0_32:
30 ; RV32ZIMOP-NEXT: mop.rr.0 a0, a0, a1
32 %tmp = call i32 @llvm.riscv.moprr.i32(i32 %a, i32 %b, i32 0)
36 define i32 @moprr7_32(i32 %a, i32 %b) nounwind {
37 ; RV32ZIMOP-LABEL: moprr7_32:
39 ; RV32ZIMOP-NEXT: mop.rr.7 a0, a0, a1
41 %tmp = call i32 @llvm.riscv.moprr.i32(i32 %a, i32 %b, i32 7)