[PATCH] D93691: [RISCV] Add intrinsics for vf[n]macc/vf[n]msac/vf[n]madd/vf[n]msub instructions

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 22 11:11:00 PST 2020


jrtc27 added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td:890
   foreach m = MxList.m in
-    defm _VX : VPseudoTernary<m.vrclass, GPR, m.vrclass, m, Constraint>;
+    defm !if(!eq(IsFloat, 0), "_VX", "_VF") : VPseudoTernary<m.vrclass,
+                             !if(!eq(IsFloat, 0), GPR, FPR32), m.vrclass, m, Constraint>;
----------------
`!if(IsFloat, "_VF", "_VX")` (or with `!not` if you really want it the other way round)?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93691



More information about the llvm-commits mailing list