[PATCH] D135601: [AArch64]SME2 Multiple vectors Int/FP clamp instructions for two/four registers

Caroline via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 22 02:52:24 PDT 2022


CarolineConcatto added inline comments.


================
Comment at: llvm/lib/Target/AArch64/SMEInstrFormats.td:1988
+  bits<4> Zd;
+  let Inst{11}  = 0b0;
+  let Inst{4-1} = Zd;
----------------
paulwalker-arm wrote:
> The base class shows value here but what about making `op1` a two bit opcode?
I did not do this because this class is also used by:
sme2_int_clamp_vector_vg2_multi
that needs to set the value o//** u**//  in AArch64SMEInstrInfo.td.

I can change class sme2_clamp_vector_vg2_multi, and then change  the multiclass sme2_int_clamp_vector_vg2_multi to be
multiclass sme2_int_clamp_vector_vg2_multi<string mnemonic, bits<2> u>
instead of only 
multiclass sme2_int_clamp_vector_vg2_multi<string mnemonic, bit u>
If you see value in doing that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135601



More information about the llvm-commits mailing list