[PATCH] D122454: [RISCV] (and (not (srl X, C)), 1) to (sltiu (andi X, 2 << C), 1) when Zbs extension disable
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 21:10:03 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.td:384
+// Return an immediate value plus 32.
+def ImmPow2: SDNodeXForm<imm, [{
----------------
This comment is duplicated from ImmPlus32.
================
Comment at: llvm/test/CodeGen/RISCV/rv64zbs.ll:518
+; RV64I: # %bb.0:
+; RV64I-NEXT: andi a0, a0, 256
+; RV64I-NEXT: seqz a0, a0
----------------
Shouldn't this be 128 not 256?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122454/new/
https://reviews.llvm.org/D122454
More information about the llvm-commits
mailing list