Skip to content

Commit

Permalink
Used PatGprGpr class to define instruction selection pattern for cv.r…
Browse files Browse the repository at this point in the history
…or. In previous patch, Pat class was used directly
  • Loading branch information
adeel10x committed Jan 17, 2024
1 parent ae287d9 commit 9024d06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/Target/RISCV/RISCVInstrInfoCOREV.td
Original file line number Diff line number Diff line change
Expand Up @@ -1222,9 +1222,7 @@ let Predicates = [HasExtXcvbitmanip, IsRV32] in {
def : PatGpr<int_riscv_cv_bitmanip_clb, CV_CLB>;
def : PatGpr<int_riscv_cv_bitmanip_cnt, CV_CNT>;

//def : PatGprGpr<int_riscv_cv_bitmanip_ror, CV_ROR>;
def : Pat<(rotr i32:$rs1, i32:$rs2),
(CV_ROR GPR:$rs1, GPR:$rs2)>;
def : PatGprGpr<rotr, CV_ROR>;

def : Pat<(int_riscv_cv_bitmanip_bitrev GPR:$rs1, cv_tuimm5:$pts, cv_tuimm2:$radix),
(CV_BITREV GPR:$rs1, cv_tuimm2:$radix, cv_tuimm5:$pts)>;
Expand Down

0 comments on commit 9024d06

Please sign in to comment.