[PATCH] D121598: [RISCV] Select SRLI+SLLI for AND with leading ones mask
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 19:36:31 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/test/CodeGen/RISCV/and.ll:121
+; RV64I-NEXT: slli a1, a1, 32
+; RV64I-NEXT: addi a1, a1, -1536
+; RV64I-NEXT: and a0, a0, a1
----------------
I just submitted D121650 to fix this case so it will sign extend -1536 to i64 instead of zero extending.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121598/new/
https://reviews.llvm.org/D121598
More information about the llvm-commits
mailing list