[PATCH] D156500: [RISCV] Fix typo in C9LeftShift
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 31 01:50:12 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG19a1b67b6d7a: [RISCV] Fix typo in C9LeftShift (authored by wangpc).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156500/new/
https://reviews.llvm.org/D156500
Files:
llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
Index: llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
+++ llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
@@ -183,7 +183,7 @@
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156500.545539.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/2719b9f5/attachment.bin>
More information about the llvm-commits
mailing list