[llvm] [RISCV] Support zext.h mnemonic with Zbkb. (PR #96821)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 20:25:23 PDT 2024


================
@@ -415,22 +415,18 @@ let Predicates = [HasStdExtZbkb, IsRV64], IsSignExtendingOpW = 1 in
 def PACKW  : ALUW_rr<0b0000100, 0b100, "packw">,
              Sched<[WritePACK32, ReadPACK32, ReadPACK32]>;
 
-let Predicates = [HasStdExtZbb, IsRV32] in {
+let Predicates = [HasStdExtZbbOrZbkb, IsRV32] in {
+let IsSignExtendingOpW = 1 in
----------------
topperc wrote:

Oops yeah. I should have only added it for RV64

https://github.com/llvm/llvm-project/pull/96821


More information about the llvm-commits mailing list