[PATCH] D94736: [RISCV] Change zext.w to be an alias of add.uw rd, rs1, x0 instead of pack.
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 22 09:22:27 PST 2021
asb accepted this revision.
asb added a comment.
LGTM, added two minor notes.
================
Comment at: llvm/lib/Target/RISCV/RISCV.td:73
"'Zbb' (Base 'B' Instructions)">;
+def NotHasStdExtZbb : Predicate<"!Subtarget->hasStdExtZbb()">;
----------------
I think this is unused?
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoB.td:509
+let Predicates = [HasStdExtZba, IsRV64] in {
+def : InstAlias<"zext.w $rd, $rs", (ADDUW GPR:$rd, GPR:$rs, X0)>;
----------------
Per Fraser's comment about noting these deviations, it might be worth adding a code comment here to note the deviation from the 0.93 spec.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94736/new/
https://reviews.llvm.org/D94736
More information about the llvm-commits
mailing list