[PATCH] D122212: [RISCV] Add alias to pack/packw
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 07:13:50 PDT 2022
benshi001 added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoZb.td:654
+let Predicates = [HasStdExtZbpOrZbkb, IsRV32] in {
+def : InstAlias<"zext.h $rd, $rs", (PACK GPR:$rd, GPR:$rs, X0), 0>;
+}
----------------
benshi001 wrote:
> We need not such aliases, since there is real zext.h instruction.
We need not two `zext.h`, maybe just one is OK, when ZBB is invalid.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122212/new/
https://reviews.llvm.org/D122212
More information about the llvm-commits
mailing list