Skip to content

Commit

Permalink
[RISCV] Fix typo in C9LeftShift
Browse files Browse the repository at this point in the history
It should be 9 instead of 5.

Reviewed By: kazu

Differential Revision: https://reviews.llvm.org/D156500
  • Loading branch information
wangpc-pp committed Jul 31, 2023
1 parent b17acc0 commit 19a1b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def C5LeftShift : PatLeaf<(imm), [{

def C9LeftShift : PatLeaf<(imm), [{
uint64_t C = N->getZExtValue();
return C > 5 && (C >> llvm::countr_zero(C)) == 9;
return C > 9 && (C >> llvm::countr_zero(C)) == 9;
}]>;

// Constant of the form (3 << C) where C is less than 32.
Expand Down

0 comments on commit 19a1b67

Please sign in to comment.