Where the RVV specification writes vs2, vs1, our TableGen patterns use
rs1, rs2. These differences can easily cause confusion. The VMANDNOT
instruction performs LHS && !RHS, and similarly for VMORNOT.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Does the vs2, vs1 operand order in the spec make sense? Would vs1, vs2 not be more natural?
Comment Actions
My bad, it seems that the 12 release doesn't have the fixed-length RVV support. Time flies.
To me, vs1,vs2 would certainly be more natural and it is indeed vs1,vs2 in a select few operations. To be honest, I can't think of a way that it has to be the way it is. Perhaps it's more consistent and requires fewer unique operand names across the full instruction set.