[qfcc] Change v6p's jumpb opname to jump

More ease of searching, since the operand types help greatly.
This commit is contained in:
Bill Currie 2022-01-30 22:39:21 +09:00
parent 7971bcd91c
commit 8dc4a0ea80
2 changed files with 4 additions and 4 deletions

View file

@ -957,7 +957,7 @@ VISIBLE const v6p_opcode_t pr_v6p_opcodes[] = {
PROG_V6P_VERSION,
"%Ga",
},
[OP_JUMPB_v6p] = {"jumpb", "jumpb",
[OP_JUMPB_v6p] = {"jump", "jump",
ev_void, ev_int, ev_invalid,
PROG_V6P_VERSION,
"%Ga[%Gb]",

View file

@ -625,7 +625,7 @@ statement_is_goto (statement_t *s)
{
if (!s)
return 0;
return !strcmp (s->opcode, "jump");
return !strcmp (s->opcode, "jump") && !s->opb;
}
int
@ -633,7 +633,7 @@ statement_is_jumpb (statement_t *s)
{
if (!s)
return 0;
return !strcmp (s->opcode, "jumpb");
return !strcmp (s->opcode, "jump") && s->opb;
}
int
@ -1251,7 +1251,7 @@ statement_branch (sblock_t *sblock, expr_t *e)
}
if (e->e.branch.type == pr_branch_jump) {
if (e->e.branch.index) {
s = new_statement (st_flow, "jumpb", e);
s = new_statement (st_flow, "jump", e);
sblock = statement_subexpr (sblock, e->e.branch.target, &s->opa);
sblock = statement_subexpr (sblock, e->e.branch.index, &s->opb);
} else {