- for (i = 0; i < VL; i++)
- xSTATE.srcoffs = i # save context
- if (predval & 1<<i) # predication uses intregs
- ireg[rd+remap1(id)] <= ireg[rs1+remap2(irs1)] +
- ireg[rs2+remap3(irs2)];
- if (!int_vec[rd ].isvector) break;
- if (int_vec[rd ].isvector) { id += 1; }
- if (int_vec[rs1].isvector) { irs1 += 1; }
- if (int_vec[rs2].isvector) { irs2 += 1; }
+ 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; }
+```