return val;
}
+/* called by the instruction: in scalar mode it performs the branch.
+ in SV mode, the fact that the bxx.h even tried to call setpc is
+ taken to mean that the compare succeeded, and save_branch_rd is
+ used instead to accumulate that information [or the target_reg
+ used instead, and copied into save_branch_rd]
+
+ at the **END** of the vector loop (back in insn_template_sv.cc)
+ the *accumulated* results in save_branch_rd are tested to see
+ if they *all* succeeded, and if so *then* the branch is taken.
+
+ TODO: the loop has to be modified to be aware of SUBVL, because
+ only if *all* subvector elements succeed is the save_branch_rd
+ bit allowed to be set.
+*/
void sv_insn_t::setpc(int xlen, int vlen, reg_t &npc, reg_t addr, uint64_t offs,
reg_t *target_reg, bool zeroing, bool inv)
{