You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made an unfortunate choice long ago to pull operands from the "function signature" of the function clause execute instances. The order of the inputs there need not match the order of the operands in the assembly syntax, and indeed there might be inputs which are not operands. For example, the vaadd.vv instruction's assembly syntax is:
vaadd.vv vd,vs2,vs1[,vm]
However, the function clause execute signature looks like:
function clause execute(MVVTYPE(funct6, vm, vs2, vs1, vd))
Here, there is an extra input, "funct6", and the operands are in fairly random order. This is also true of the signature for the other stanzas, including mapping clause encdec and mapping clause assembly.
The operands, not surprisingly, are well represented in the actual assembly syntax in mapping clause assembly:
I made an unfortunate choice long ago to pull operands from the "function signature" of the
function clause execute
instances. The order of the inputs there need not match the order of the operands in the assembly syntax, and indeed there might be inputs which are not operands. For example, thevaadd.vv
instruction's assembly syntax is:However, the
function clause execute
signature looks like:Here, there is an extra input, "funct6", and the operands are in fairly random order. This is also true of the signature for the other stanzas, including
mapping clause encdec
andmapping clause assembly
.The operands, not surprisingly, are well represented in the actual assembly syntax in
mapping clause assembly
:The latter line there translates fairly easily into
vaadd.vv vd,vs2,vs1[,vm]
.I think we need to move the operand extraction from the
function clause execute
processing to themapping clause assembly
processing, if possible.The text was updated successfully, but these errors were encountered: