```
function op_add(RT, RA, RB) # add not VADD!
- ...
- ...
for (i=0,id=0,irs1=0,irs2=0; i < VL; i++)
SVSTATE.srcstep = i # save context
if (predval & 1<<i) # predication mask
GPR[RT+remap1(id)] <= GPR[RA+remap2(irs1)] +
GPR[RB+remap3(irs2)];
- if (!int_vec[RT ].isvector) break;
- if (int_vec[RT].isvector) { id += 1; }
- if (int_vec[RA].isvector) { irs1 += 1; }
- if (int_vec[RB].isvector) { irs2 += 1; }
+ if (!RT.isvector) break;
+ if (RT.isvector) { id += 1; }
+ if (RA.isvector) { irs1 += 1; }
+ if (RB.isvector) { irs2 += 1; }
```
By changing remappings, 2D matrices may be transposed "in-place" for one