[PATCH] D76445: [RISCV][GlobalISel] Select ALU GPR instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 15 15:38:41 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/GlobalISel/alu-roundtrip.ll:36
+; RV64IM:       # %bb.0: # %entry
+; RV64IM-NEXT:    slli a0, a0, 24
+; RV64IM-NEXT:    sraiw a0, a0, 24
----------------
craig.topper wrote:
> nitinjohnraj wrote:
> > I think this should be slliw?
> The upper bits aren’t used by the sraiw so SLLI should be ok
To clarify, the change from slliw to slli was made by the RISCVOptWInstrs pass.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76445/new/

https://reviews.llvm.org/D76445



More information about the llvm-commits mailing list