Rather than a vague "br.??" line, annotate the branch with its target
type (useful for disambiguating discards) and whether it was inverted.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
midgard_alu_op op = ins->alu.op;
const char *name = alu_opcode_props[op].name;
+ const char *branch_target_names[] = {
+ "goto", "break", "continue", "discard"
+ };
+
+ if (ins->compact_branch && !ins->prepacked_branch)
+ name = branch_target_names[ins->branch.target_type];
+
if (ins->unit)
printf("%s.", mir_get_unit(ins->unit));
assert(0);
}
- if (ins->invert)
+ if (ins->invert || (ins->compact_branch && !ins->prepacked_branch && ins->branch.invert_conditional))
printf(".not");
printf(" ");