[PATCH] D138807: [RISCV] Support vector crypto extension ISA string and assembly

2023-01-03 Thread Eric Gouriou via Phabricator via cfe-commits
ego added a comment. FYI, more issues with v0 not being accepted as an operand with unmasked instructions. Comment at: llvm/test/MC/RISCV/rvv/rv64zvkns.s:59 + +vaeskf1.vi v10, v9, 1 +# CHECK-INST: vaeskf1.vi v10, v9, 1 ego wrote: > craig.topper wrote: > > ego

[PATCH] D138807: [RISCV] Support vector crypto extension ISA string and assembly

2023-01-03 Thread Eric Gouriou via Phabricator via cfe-commits
ego added inline comments. Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoZvk.td:135 + defm VANDN_V : VALU_IV_V_X_I<"vandn", 0b01>; + def VBREV8_V : VALUVs2<0b010010, 0b01000, OPIVV, "vbrev8.v">; + defm VCLMUL_V : VALU_IV_V_X_VCLMUL<"vclmul", 0b001100>; T

[PATCH] D138807: [RISCV] Support vector crypto extension ISA string and assembly

2022-12-28 Thread Eric Gouriou via Phabricator via cfe-commits
ego added a comment. See my comment below where I can trigger an MC-layer assertion when using "vaeskf1 v0, ...". Comment at: llvm/test/MC/RISCV/rvv/rv64zvkns.s:1-9 +# RUN: llvm-mc -triple=riscv64 -show-encoding --mattr=+zve32x --mattr=+experimental-zvkns %s \ +# RUN:

[PATCH] D138807: [RISCV] Support vector crypto extension ISA string and assembly

2022-12-16 Thread Eric Gouriou via Phabricator via cfe-commits
ego added inline comments. Comment at: llvm/lib/Support/RISCVISAInfo.cpp:827 +{{"zvkg"}, {ImpliedExtsZve32x}}, +{{"zvknha"}, {ImpliedExtsZve32x}}, +{{"zvknhb"}, {ImpliedExtsZve64x}}, ego wrote: > How does this work? This doesn't seem to be enough, > "

[PATCH] D138807: [RISCV] Support vector crypto extension ISA string and assembly

2022-12-16 Thread Eric Gouriou via Phabricator via cfe-commits
ego added inline comments. Comment at: llvm/lib/Support/RISCVISAInfo.cpp:827 +{{"zvkb"}, {ImpliedExtsZve64x}}, +{{"zvkg"}, {ImpliedExtsZve32x}}, +{{"zvknha"}, {ImpliedExtsZve32x}}, craig.topper wrote: > ego wrote: > > What is the reasoning between 32

[PATCH] D138807: [RISCV] Support vector crypto extension ISA string and assembly

2022-12-06 Thread Eric Gouriou via Phabricator via cfe-commits
ego added a comment. I have been working on a patch set to support Zvk. It will take me a few more days to prepare my patches to post them publicly. Your patches are in a very good shape and a lot of files end up looking pretty similar. I have a few comments, most minor. This is my first review