brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · f56ee00 Raw
41 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=riscv32 -mattr=+zimop -verify-machineinstrs < %s \3; RUN:   | FileCheck %s -check-prefix=RV32ZIMOP4 5define i32 @mopr0_32(i32 %a) nounwind {6; RV32ZIMOP-LABEL: mopr0_32:7; RV32ZIMOP:       # %bb.0:8; RV32ZIMOP-NEXT:    mop.r.0 a0, a09; RV32ZIMOP-NEXT:    ret10  %tmp = call i32 @llvm.riscv.mopr.i32(i32 %a, i32 0)11  ret i32 %tmp12}13 14define i32 @mopr31_32(i32 %a) nounwind {15; RV32ZIMOP-LABEL: mopr31_32:16; RV32ZIMOP:       # %bb.0:17; RV32ZIMOP-NEXT:    mop.r.31 a0, a018; RV32ZIMOP-NEXT:    ret19  %tmp = call i32 @llvm.riscv.mopr.i32(i32 %a, i32 31)20  ret i32 %tmp21}22 23define i32 @moprr0_32(i32 %a, i32 %b) nounwind {24; RV32ZIMOP-LABEL: moprr0_32:25; RV32ZIMOP:       # %bb.0:26; RV32ZIMOP-NEXT:    mop.rr.0 a0, a0, a127; RV32ZIMOP-NEXT:    ret28  %tmp = call i32 @llvm.riscv.moprr.i32(i32 %a, i32 %b, i32 0)29  ret i32 %tmp30}31 32define i32 @moprr7_32(i32 %a, i32 %b) nounwind {33; RV32ZIMOP-LABEL: moprr7_32:34; RV32ZIMOP:       # %bb.0:35; RV32ZIMOP-NEXT:    mop.rr.7 a0, a0, a136; RV32ZIMOP-NEXT:    ret37  %tmp = call i32 @llvm.riscv.moprr.i32(i32 %a, i32 %b, i32 7)38  ret i32 %tmp39}40 41