[llvm] 19a1b67 - [RISCV] Fix typo in C9LeftShift
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 31 01:50:04 PDT 2023
Author: wangpc
Date: 2023-07-31T16:49:47+08:00
New Revision: 19a1b67b6d7a955ea5856a00d29b6358441448dd
URL: https://github.com/llvm/llvm-project/commit/19a1b67b6d7a955ea5856a00d29b6358441448dd
DIFF: https://github.com/llvm/llvm-project/commit/19a1b67b6d7a955ea5856a00d29b6358441448dd.diff
LOG: [RISCV] Fix typo in C9LeftShift
It should be 9 instead of 5.
Reviewed By: kazu
Differential Revision: https://reviews.llvm.org/D156500
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoZb.td b/llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
index 773766496c5891..0cee7b9a1cebc7 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
@@ -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.
More information about the llvm-commits
mailing list