Use labels instead of numeric JIP/UIP offsets.
Works for gen6+.
v2:
- Change asm tests to use labels on gen6+
- Remove usage of relative offsets on gen6+
- Consider brw_jump_scale when setting relative offset
- Return error if there is a JIP/UIP label without matching target
- Fix matching of label tokens
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4245>
char *input_filename = NULL;
int errors;
+struct list_head instr_labels;
+struct list_head target_labels;
+
static void
print_help(const char *progname, FILE *file)
{
return devinfo;
}
+static bool
+i965_postprocess_labels()
+{
+ if (p->devinfo->gen < 6) {
+ return true;
+ }
+
+ void *store = p->store;
+
+ struct target_label *tlabel;
+ struct instr_label *ilabel, *s;
+
+ const unsigned to_bytes_scale = brw_jump_scale(p->devinfo);
+
+ LIST_FOR_EACH_ENTRY(tlabel, &target_labels, link) {
+ LIST_FOR_EACH_ENTRY_SAFE(ilabel, s, &instr_labels, link) {
+ if (!strcmp(tlabel->name, ilabel->name)) {
+ brw_inst *inst = store + ilabel->offset;
+
+ int relative_offset = (tlabel->offset - ilabel->offset) / sizeof(brw_inst);
+ relative_offset *= to_bytes_scale;
+
+ unsigned opcode = brw_inst_opcode(p->devinfo, inst);
+
+ if (ilabel->type == INSTR_LABEL_JIP) {
+ switch (opcode) {
+ case BRW_OPCODE_IF:
+ case BRW_OPCODE_ELSE:
+ case BRW_OPCODE_ENDIF:
+ case BRW_OPCODE_WHILE:
+ if (p->devinfo->gen >= 7) {
+ brw_inst_set_jip(p->devinfo, inst, relative_offset);
+ } else if (p->devinfo->gen == 6) {
+ brw_inst_set_gen6_jump_count(p->devinfo, inst, relative_offset);
+ }
+ break;
+ case BRW_OPCODE_BREAK:
+ case BRW_OPCODE_HALT:
+ case BRW_OPCODE_CONTINUE:
+ brw_inst_set_jip(p->devinfo, inst, relative_offset);
+ break;
+ default:
+ fprintf(stderr, "Unknown opcode %d with JIP label\n", opcode);
+ return false;
+ }
+ } else {
+ switch (opcode) {
+ case BRW_OPCODE_IF:
+ case BRW_OPCODE_ELSE:
+ if (p->devinfo->gen > 7) {
+ brw_inst_set_uip(p->devinfo, inst, relative_offset);
+ } else if (p->devinfo->gen == 7) {
+ brw_inst_set_uip(p->devinfo, inst, relative_offset);
+ } else if (p->devinfo->gen == 6) {
+ // Nothing
+ }
+ break;
+ case BRW_OPCODE_WHILE:
+ case BRW_OPCODE_ENDIF:
+ fprintf(stderr, "WHILE/ENDIF cannot have UIP offset\n");
+ return false;
+ case BRW_OPCODE_BREAK:
+ case BRW_OPCODE_CONTINUE:
+ case BRW_OPCODE_HALT:
+ brw_inst_set_uip(p->devinfo, inst, relative_offset);
+ break;
+ default:
+ fprintf(stderr, "Unknown opcode %d with UIP label\n", opcode);
+ return false;
+ }
+ }
+
+ list_del(&ilabel->link);
+ }
+ }
+ }
+
+ LIST_FOR_EACH_ENTRY(ilabel, &instr_labels, link) {
+ fprintf(stderr, "Unknown label '%s'\n", ilabel->name);
+ }
+
+ return list_is_empty(&instr_labels);
+}
+
int main(int argc, char **argv)
{
char *output_file = NULL;
struct disasm_info *disasm_info;
struct gen_device_info *devinfo = NULL;
int result = EXIT_FAILURE;
+ list_inithead(&instr_labels);
+ list_inithead(&target_labels);
const struct option i965_asm_opts[] = {
{ "help", no_argument, (int *) &help, true },
if (err || errors)
goto end;
+ if (!i965_postprocess_labels())
+ goto end;
+
store = p->store;
disasm_info = disasm_initialize(p->devinfo, NULL);
#include "compiler/brw_inst.h"
#include "compiler/brw_eu.h"
#include "dev/gen_device_info.h"
+#include "util/list.h"
/* glibc < 2.27 defines OVERFLOW in /usr/include/math.h. */
#undef OVERFLOW
extern int errors;
extern char *input_filename;
+extern struct list_head instr_labels;
+extern struct list_head target_labels;
+
struct condition {
unsigned cond_modifier:4;
unsigned flag_reg_nr:1;
unsigned is_compr:1;
};
+enum instr_label_type {
+ INSTR_LABEL_JIP,
+ INSTR_LABEL_UIP,
+};
+
+struct instr_label {
+ struct list_head link;
+
+ char *name;
+ int offset;
+ enum instr_label_type type;
+};
+
+struct target_label {
+ struct list_head link;
+
+ char *name;
+ int offset;
+};
+
#endif /* __I965_ASM_H__ */
}
}
+static void
+add_label(struct brw_codegen *p, const char* label_name, enum instr_label_type type)
+{
+ if (!label_name) {
+ return;
+ }
+
+ struct instr_label *label = rzalloc(p->mem_ctx, struct instr_label);
+
+ label->name = ralloc_strdup(p->mem_ctx, label_name);
+ label->offset = p->next_insn_offset;
+ label->type = type;
+
+ list_addtail(&label->link, &instr_labels);
+}
+
%}
%locations
%start ROOT
%union {
+ char *string;
double number;
int integer;
unsigned long long int llint;
%token <integer> TYPE_DF TYPE_NF
%token <integer> TYPE_VF
+/* label */
+%token <string> JUMP_LABEL
+%token <string> JUMP_LABEL_TARGET
+
/* opcodes */
%token <integer> ADD ADD3 ADDC AND ASR AVG
%token <integer> BFE BFI1 BFI2 BFB BFREV BRC BRD BREAK
%type <integer> negate abs chansel math_function sharedfunction
+%type <string> jumplabeltarget
+%type <string> jumplabel
+
%code {
static void
| instrseq relocatableinstruction SEMICOLON
| instruction SEMICOLON
| relocatableinstruction SEMICOLON
+ | instrseq jumplabeltarget
+ | jumplabeltarget
;
/* Instruction Group */
/* branch instruction */
branchinstruction:
- predicate ENDIF execsize relativelocation instoptions
+ predicate ENDIF execsize JUMP_LABEL instoptions
{
+ add_label(p, $4, INSTR_LABEL_JIP);
+
brw_next_insn(p, $2);
i965_asm_set_instruction_options(p, $5);
brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
- if (p->devinfo->gen < 6) {
- brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
- BRW_REGISTER_TYPE_D));
- brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
- BRW_REGISTER_TYPE_D));
- brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
- brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst,
- $4);
- } else if (p->devinfo->gen == 6) {
+ if (p->devinfo->gen == 6) {
brw_set_dest(p, brw_last_inst, brw_imm_w(0x0));
- brw_inst_set_gen6_jump_count(p->devinfo, brw_last_inst,
- $4);
brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
brw_set_src1(p, brw_last_inst, retype(brw_null_reg(),
brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
brw_set_src1(p, brw_last_inst, brw_imm_w(0x0));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
} else {
- brw_set_src0(p, brw_last_inst, brw_imm_d($4));
+ brw_set_src0(p, brw_last_inst, brw_imm_d(0x0));
}
- if (p->devinfo->gen < 6)
- brw_inst_set_thread_control(p->devinfo, brw_last_inst,
- BRW_THREAD_SWITCH);
brw_pop_insn_state(p);
}
- | ELSE execsize relativelocation rellocation instoptions
+ | predicate ENDIF execsize relativelocation instoptions
+ {
+ brw_next_insn(p, $2);
+ i965_asm_set_instruction_options(p, $5);
+ brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
+
+ brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
+ BRW_REGISTER_TYPE_D));
+ brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
+ BRW_REGISTER_TYPE_D));
+ brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
+ brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst, $4);
+
+ brw_inst_set_thread_control(p->devinfo, brw_last_inst,
+ BRW_THREAD_SWITCH);
+
+ brw_pop_insn_state(p);
+ }
+ | ELSE execsize JUMP_LABEL jumplabel instoptions
{
+ add_label(p, $3, INSTR_LABEL_JIP);
+ add_label(p, $4, INSTR_LABEL_UIP);
+
brw_next_insn(p, $1);
i965_asm_set_instruction_options(p, $5);
brw_inst_set_exec_size(p->devinfo, brw_last_inst, $2);
- if (p->devinfo->gen < 6) {
- brw_set_dest(p, brw_last_inst, brw_ip_reg());
- brw_set_src0(p, brw_last_inst, brw_ip_reg());
- brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
- brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst,
- $3);
- brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst,
- $4);
- } else if (p->devinfo->gen == 6) {
+ if (p->devinfo->gen == 6) {
brw_set_dest(p, brw_last_inst, brw_imm_w(0x0));
- brw_inst_set_gen6_jump_count(p->devinfo, brw_last_inst,
- $3);
brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
brw_set_src1(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
- brw_set_src1(p, brw_last_inst, brw_imm_w($3));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $3);
- brw_inst_set_uip(p->devinfo, brw_last_inst, $4);
+ brw_set_src1(p, brw_last_inst, brw_imm_w(0));
} else {
brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
- brw_set_src0(p, brw_last_inst, brw_imm_d($3));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $3);
- brw_inst_set_uip(p->devinfo, brw_last_inst, $4);
+ if (p->devinfo->gen < 12)
+ brw_set_src0(p, brw_last_inst, brw_imm_d(0));
}
+ }
+ | ELSE execsize relativelocation rellocation instoptions
+ {
+ brw_next_insn(p, $1);
+ i965_asm_set_instruction_options(p, $5);
+ brw_inst_set_exec_size(p->devinfo, brw_last_inst, $2);
- if (!p->single_program_flow && p->devinfo->gen < 6)
+ brw_set_dest(p, brw_last_inst, brw_ip_reg());
+ brw_set_src0(p, brw_last_inst, brw_ip_reg());
+ brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
+ brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst, $3);
+ brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst, $4);
+
+ if (!p->single_program_flow)
brw_inst_set_thread_control(p->devinfo, brw_last_inst,
BRW_THREAD_SWITCH);
}
- | predicate IF execsize relativelocation rellocation instoptions
+ | predicate IF execsize JUMP_LABEL jumplabel instoptions
{
+ add_label(p, $4, INSTR_LABEL_JIP);
+ add_label(p, $5, INSTR_LABEL_UIP);
+
brw_next_insn(p, $2);
i965_asm_set_instruction_options(p, $6);
brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
- if (p->devinfo->gen < 6) {
- brw_set_dest(p, brw_last_inst, brw_ip_reg());
- brw_set_src0(p, brw_last_inst, brw_ip_reg());
- brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
- brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst,
- $4);
- brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst,
- $5);
- } else if (p->devinfo->gen == 6) {
+ if (p->devinfo->gen == 6) {
brw_set_dest(p, brw_last_inst, brw_imm_w(0x0));
- brw_inst_set_gen6_jump_count(p->devinfo, brw_last_inst,
- $4);
brw_set_src0(p, brw_last_inst,
vec1(retype(brw_null_reg(),
BRW_REGISTER_TYPE_D)));
brw_set_src0(p, brw_last_inst,
vec1(retype(brw_null_reg(),
BRW_REGISTER_TYPE_D)));
- brw_set_src1(p, brw_last_inst, brw_imm_w($4));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
- brw_inst_set_uip(p->devinfo, brw_last_inst, $5);
+ brw_set_src1(p, brw_last_inst, brw_imm_w(0x0));
} else {
brw_set_dest(p, brw_last_inst,
vec1(retype(brw_null_reg(),
BRW_REGISTER_TYPE_D)));
- brw_set_src0(p, brw_last_inst, brw_imm_d($4));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
- brw_inst_set_uip(p->devinfo, brw_last_inst, $5);
+ if (p->devinfo->gen < 12)
+ brw_set_src0(p, brw_last_inst, brw_imm_d(0x0));
}
- if (!p->single_program_flow && p->devinfo->gen < 6)
+ brw_pop_insn_state(p);
+ }
+ | predicate IF execsize relativelocation rellocation instoptions
+ {
+ brw_next_insn(p, $2);
+ i965_asm_set_instruction_options(p, $6);
+ brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
+
+ brw_set_dest(p, brw_last_inst, brw_ip_reg());
+ brw_set_src0(p, brw_last_inst, brw_ip_reg());
+ brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
+ brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst, $4);
+ brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst, $5);
+
+ if (!p->single_program_flow)
brw_inst_set_thread_control(p->devinfo, brw_last_inst,
BRW_THREAD_SWITCH);
brw_pop_insn_state(p);
}
- | predicate IFF execsize relativelocation instoptions
+ | predicate IFF execsize JUMP_LABEL instoptions
{
+ add_label(p, $4, INSTR_LABEL_JIP);
+
brw_next_insn(p, $2);
i965_asm_set_instruction_options(p, $5);
brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
- if (p->devinfo->gen < 6) {
- brw_set_dest(p, brw_last_inst, brw_ip_reg());
- brw_set_src0(p, brw_last_inst, brw_ip_reg());
- brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst,
- $4);
- brw_set_src1(p, brw_last_inst, brw_imm_d($4));
- } else if (p->devinfo->gen == 6) {
- brw_set_dest(p, brw_last_inst, brw_imm_w($4));
- brw_inst_set_gen6_jump_count(p->devinfo, brw_last_inst,
- $4);
+ if (p->devinfo->gen == 6) {
brw_set_src0(p, brw_last_inst,
vec1(retype(brw_null_reg(),
BRW_REGISTER_TYPE_D)));
brw_set_src0(p, brw_last_inst,
vec1(retype(brw_null_reg(),
BRW_REGISTER_TYPE_D)));
- brw_set_src1(p, brw_last_inst, brw_imm_w($4));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
+ brw_set_src1(p, brw_last_inst, brw_imm_w(0x0));
} else {
brw_set_dest(p, brw_last_inst,
vec1(retype(brw_null_reg(),
BRW_REGISTER_TYPE_D)));
- brw_set_src0(p, brw_last_inst, brw_imm_d($4));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
+ if (p->devinfo->gen < 12)
+ brw_set_src0(p, brw_last_inst, brw_imm_d(0x0));
}
- if (!p->single_program_flow && p->devinfo->gen < 6)
+ brw_pop_insn_state(p);
+ }
+ | predicate IFF execsize relativelocation instoptions
+ {
+ brw_next_insn(p, $2);
+ i965_asm_set_instruction_options(p, $5);
+ brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
+
+ brw_set_dest(p, brw_last_inst, brw_ip_reg());
+ brw_set_src0(p, brw_last_inst, brw_ip_reg());
+ brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst, $4);
+ brw_set_src1(p, brw_last_inst, brw_imm_d($4));
+
+ if (!p->single_program_flow)
brw_inst_set_thread_control(p->devinfo, brw_last_inst,
BRW_THREAD_SWITCH);
/* break instruction */
breakinstruction:
- predicate BREAK execsize relativelocation relativelocation instoptions
+ predicate BREAK execsize JUMP_LABEL JUMP_LABEL instoptions
{
+ add_label(p, $4, INSTR_LABEL_JIP);
+ add_label(p, $5, INSTR_LABEL_UIP);
+
brw_next_insn(p, $2);
i965_asm_set_instruction_options(p, $6);
brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
if (p->devinfo->gen >= 8) {
brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
- brw_set_src0(p, brw_last_inst, brw_imm_d($4));
- brw_inst_set_uip(p->devinfo, brw_last_inst, $5);
- } else if (p->devinfo->gen >= 6) {
+ brw_set_src0(p, brw_last_inst, brw_imm_d(0x0));
+ } else {
brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
- brw_inst_set_uip(p->devinfo, brw_last_inst, $5);
- } else {
- brw_set_dest(p, brw_last_inst, brw_ip_reg());
- brw_set_src0(p, brw_last_inst, brw_ip_reg());
- brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
- brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst,
- $4);
- brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst,
- $5);
}
brw_pop_insn_state(p);
}
- | predicate HALT execsize relativelocation relativelocation instoptions
+ | predicate BREAK execsize relativelocation relativelocation instoptions
+ {
+ brw_next_insn(p, $2);
+ i965_asm_set_instruction_options(p, $6);
+ brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
+
+ brw_set_dest(p, brw_last_inst, brw_ip_reg());
+ brw_set_src0(p, brw_last_inst, brw_ip_reg());
+ brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
+ brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst, $4);
+ brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst, $5);
+
+ brw_pop_insn_state(p);
+ }
+ | predicate HALT execsize JUMP_LABEL JUMP_LABEL instoptions
{
+ add_label(p, $4, INSTR_LABEL_JIP);
+ add_label(p, $5, INSTR_LABEL_UIP);
+
brw_next_insn(p, $2);
i965_asm_set_instruction_options(p, $6);
brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
+
brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
if (p->devinfo->gen >= 8) {
- brw_set_src0(p, brw_last_inst, brw_imm_d($4));
- brw_inst_set_uip(p->devinfo, brw_last_inst, $5);
+ brw_set_src0(p, brw_last_inst, brw_imm_d(0x0));
} else {
brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
BRW_REGISTER_TYPE_D));
- brw_set_src1(p, brw_last_inst, brw_imm_d($5));
+ brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
}
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
- brw_inst_set_uip(p->devinfo, brw_last_inst, $5);
brw_pop_insn_state(p);
}
- | predicate CONT execsize relativelocation relativelocation instoptions
+ | predicate CONT execsize JUMP_LABEL JUMP_LABEL instoptions
{
+ add_label(p, $4, INSTR_LABEL_JIP);
+ add_label(p, $5, INSTR_LABEL_UIP);
+
brw_next_insn(p, $2);
i965_asm_set_instruction_options(p, $6);
brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
if (p->devinfo->gen >= 8) {
brw_set_src0(p, brw_last_inst, brw_imm_d(0x0));
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
- brw_inst_set_uip(p->devinfo, brw_last_inst, $5);
} else {
brw_set_src0(p, brw_last_inst, brw_ip_reg());
brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
- if (p->devinfo->gen >= 6) {
- brw_inst_set_jip(p->devinfo, brw_last_inst, $4);
- brw_inst_set_uip(p->devinfo, brw_last_inst, $5);
- } else {
- brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst,
- $4);
- brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst,
- $5);
- }
}
brw_pop_insn_state(p);
}
+ | predicate CONT execsize relativelocation relativelocation instoptions
+ {
+ brw_next_insn(p, $2);
+ i965_asm_set_instruction_options(p, $6);
+ brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
+ brw_set_dest(p, brw_last_inst, brw_ip_reg());
+
+ brw_set_src0(p, brw_last_inst, brw_ip_reg());
+ brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
+
+ brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst, $4);
+ brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst, $5);
+
+ brw_pop_insn_state(p);
+ }
;
/* loop instruction */
loopinstruction:
- predicate WHILE execsize relativelocation instoptions
+ predicate WHILE execsize JUMP_LABEL instoptions
{
+ add_label(p, $4, INSTR_LABEL_JIP);
+
brw_next_insn(p, $2);
i965_asm_set_instruction_options(p, $5);
brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
- if (p->devinfo->gen >= 6) {
- if (p->devinfo->gen >= 8) {
- brw_set_dest(p, brw_last_inst,
- retype(brw_null_reg(),
- BRW_REGISTER_TYPE_D));
- brw_set_src0(p, brw_last_inst, brw_imm_d($4));
- } else if (p->devinfo->gen == 7) {
- brw_set_dest(p, brw_last_inst,
- retype(brw_null_reg(),
- BRW_REGISTER_TYPE_D));
- brw_set_src0(p, brw_last_inst,
- retype(brw_null_reg(),
- BRW_REGISTER_TYPE_D));
- brw_set_src1(p, brw_last_inst,
- brw_imm_w(0x0));
- brw_inst_set_jip(p->devinfo, brw_last_inst,
- $4);
- } else {
- brw_set_dest(p, brw_last_inst, brw_imm_w(0x0));
- brw_inst_set_gen6_jump_count(p->devinfo,
- brw_last_inst,
- $4);
- brw_set_src0(p, brw_last_inst,
- retype(brw_null_reg(),
- BRW_REGISTER_TYPE_D));
- brw_set_src1(p, brw_last_inst,
- retype(brw_null_reg(),
- BRW_REGISTER_TYPE_D));
- }
+ if (p->devinfo->gen >= 8) {
+ brw_set_dest(p, brw_last_inst,
+ retype(brw_null_reg(),
+ BRW_REGISTER_TYPE_D));
+ brw_set_src0(p, brw_last_inst, brw_imm_d(0x0));
+ } else if (p->devinfo->gen == 7) {
+ brw_set_dest(p, brw_last_inst,
+ retype(brw_null_reg(),
+ BRW_REGISTER_TYPE_D));
+ brw_set_src0(p, brw_last_inst,
+ retype(brw_null_reg(),
+ BRW_REGISTER_TYPE_D));
+ brw_set_src1(p, brw_last_inst,
+ brw_imm_w(0x0));
} else {
- brw_set_dest(p, brw_last_inst, brw_ip_reg());
- brw_set_src0(p, brw_last_inst, brw_ip_reg());
- brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
- brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst,
- $4);
- brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst,
- 0);
+ brw_set_dest(p, brw_last_inst, brw_imm_w(0x0));
+ brw_set_src0(p, brw_last_inst,
+ retype(brw_null_reg(),
+ BRW_REGISTER_TYPE_D));
+ brw_set_src1(p, brw_last_inst,
+ retype(brw_null_reg(),
+ BRW_REGISTER_TYPE_D));
}
+
+ brw_pop_insn_state(p);
+ }
+ | predicate WHILE execsize relativelocation instoptions
+ {
+ brw_next_insn(p, $2);
+ i965_asm_set_instruction_options(p, $5);
+ brw_inst_set_exec_size(p->devinfo, brw_last_inst, $3);
+
+ brw_set_dest(p, brw_last_inst, brw_ip_reg());
+ brw_set_src0(p, brw_last_inst, brw_ip_reg());
+ brw_set_src1(p, brw_last_inst, brw_imm_d(0x0));
+ brw_inst_set_gen4_jump_count(p->devinfo, brw_last_inst, $4);
+ brw_inst_set_gen4_pop_count(p->devinfo, brw_last_inst, 0);
+
brw_pop_insn_state(p);
}
| DO execsize instoptions
}
;
+jumplabel:
+ JUMP_LABEL { $$ = $1; }
+ | %empty { $$ = NULL; }
+ ;
+
+jumplabeltarget:
+ JUMP_LABEL_TARGET
+ {
+ struct target_label *label = rzalloc(p->mem_ctx, struct target_label);
+
+ label->name = ralloc_strdup(p->mem_ctx, $1);
+ label->offset = p->next_insn_offset;
+
+ list_addtail(&label->link, &target_labels);
+ }
+ ;
+
/* Destination register */
dst:
dstoperand
%x CHANNEL
%x REG
%x DOTSEL
+%x LABEL
%%
/* eat up single line comment */
/* Eat up JIP and UIP token, their values will be parsed
* in numeric section
*/
-"JIP: " { }
-"UIP: " { }
+"JIP: " { BEGIN(LABEL); }
+"UIP: " { BEGIN(LABEL); }
"Jump: " { }
"Pop: " { }
[ \t]+ { }
return LONG;
}
+ /* jump label target */
+[a-zA-Z_][0-9a-zA-Z_]*":" {
+ yylval.string = ralloc_strdup(p->mem_ctx, yytext);
+ /* Stomp the trailing ':' */
+ yylval.string[yyleng - 1] = '\0';
+ return JUMP_LABEL_TARGET;
+}
+
+ /* jump label */
+<LABEL>[a-zA-Z_][0-9a-zA-Z_]* {
+ yylval.string = ralloc_strdup(p->mem_ctx, yytext);
+ BEGIN(INITIAL);
+ return JUMP_LABEL;
+}
+
\n { yycolumn = 1; }
. {
-break(8) JIP: 2 UIP: 12 { align16 1Q };
-break(8) JIP: 2 UIP: 104 { align1 1Q };
-break(16) JIP: 2 UIP: 104 { align1 1H };
-(+f0.0) break(8) JIP: 4 UIP: 12 { align1 1Q };
-(+f0.0) break(16) JIP: 4 UIP: 12 { align1 1H };
-(+f0.0.x) break(8) JIP: 122 UIP: 124 { align16 1Q };
+break(8) JIP: LABEL1 UIP: LABEL2 { align16 1Q };
+LABEL1:
+break(8) JIP: LABEL2 UIP: LABEL2 { align1 1Q };
+break(16) JIP: LABEL2 UIP: LABEL2 { align1 1H };
+LABEL2:
+(+f0.0) break(8) JIP: LABEL3 UIP: LABEL3 { align1 1Q };
+(+f0.0) break(16) JIP: LABEL3 UIP: LABEL3 { align1 1H };
+(+f0.0.x) break(8) JIP: LABEL3 UIP: LABEL3 { align16 1Q };
+LABEL3:
-28 01 60 00 84 1c 0f 20 04 00 6e 00 02 00 0c 00
-28 00 60 00 84 1c 00 20 00 00 8d 00 02 00 68 00
-28 00 80 00 84 1c 00 20 00 00 8d 00 02 00 68 00
-28 00 61 00 84 1c 00 20 00 00 8d 00 04 00 0c 00
-28 00 81 00 84 1c 00 20 00 00 8d 00 04 00 0c 00
-28 01 62 00 84 1c 0f 20 04 00 6e 00 7a 00 7c 00
+28 01 60 00 84 1c 0f 20 04 00 6e 00 02 00 06 00
+28 00 60 00 84 1c 00 20 00 00 8d 00 04 00 04 00
+28 00 80 00 84 1c 00 20 00 00 8d 00 02 00 02 00
+28 00 61 00 84 1c 00 20 00 00 8d 00 06 00 06 00
+28 00 81 00 84 1c 00 20 00 00 8d 00 04 00 04 00
+28 01 62 00 84 1c 0f 20 04 00 6e 00 02 00 02 00
-cont(8) JIP: 2 UIP: 8 { align1 1Q };
-cont(16) JIP: 2 UIP: 8 { align1 1H };
-cont(8) JIP: 2 UIP: 8 { align16 1Q };
+cont(8) JIP: LABEL0 UIP: LABEL2 { align1 1Q };
+LABEL0:
+cont(16) JIP: LABEL1 UIP: LABEL2 { align1 1H };
+LABEL1:
+cont(8) JIP: LABEL2 UIP: LABEL2 { align16 1Q };
+LABEL2:
-29 00 60 00 00 1c 00 34 00 14 60 00 02 00 08 00
-29 00 80 00 00 1c 00 34 00 14 60 00 02 00 08 00
-29 01 60 00 00 1c 0f 34 04 14 6e 00 02 00 08 00
+29 00 60 00 00 1c 00 34 00 14 60 00 02 00 06 00
+29 00 80 00 00 1c 00 34 00 14 60 00 02 00 04 00
+29 01 60 00 00 1c 0f 34 04 14 6e 00 02 00 02 00
-else(8) JIP: 12 { align1 1Q };
-else(16) JIP: 12 { align1 1H };
-else(8) JIP: 18 { align16 1Q };
+else(8) JIP: LABEL0 { align1 1Q };
+else(16) JIP: LABEL0 { align1 1H };
+else(8) JIP: LABEL0 { align16 1Q };
+LABEL0:
-24 00 60 00 8f 10 0c 00 00 00 8d 00 00 00 8d 00
-24 00 80 00 8f 10 0c 00 00 00 8d 00 00 00 8d 00
-24 01 60 00 8f 10 12 00 04 00 6e 00 04 00 6e 00
+24 00 60 00 8f 10 06 00 00 00 8d 00 00 00 8d 00
+24 00 80 00 8f 10 04 00 00 00 8d 00 00 00 8d 00
+24 01 60 00 8f 10 02 00 04 00 6e 00 04 00 6e 00
-endif(8) JIP: 2 { align16 1Q };
-endif(8) JIP: 2 { align1 1Q };
-endif(16) JIP: 2 { align1 1H };
+endif(8) JIP: LABEL1 { align16 1Q };
+LABEL1:
+endif(8) JIP: LABEL2 { align1 1Q };
+LABEL2:
+endif(16) JIP: LABEL3 { align1 1H };
+LABEL3:
-(-f0.1.any4h) halt(8) JIP: 96 UIP: 98 { align1 1Q };
-halt(8) JIP: 2 UIP: 2 { align1 1Q };
-(-f0.1.any4h) halt(16) JIP: 100 UIP: 102 { align1 1H };
-halt(16) JIP: 2 UIP: 2 { align1 1H };
+(-f0.1.any4h) halt(8) JIP: LABEL0 UIP: LABEL0 { align1 1Q };
+halt(8) JIP: LABEL1 UIP: LABEL1 { align1 1Q };
+LABEL1:
+(-f0.1.any4h) halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+LABEL0:
-2a 00 76 00 84 1c 00 20 00 00 8d 02 60 00 62 00
+2a 00 76 00 84 1c 00 20 00 00 8d 02 08 00 08 00
2a 00 60 00 84 1c 00 20 00 00 8d 00 02 00 02 00
-2a 00 96 00 84 1c 00 20 00 00 8d 02 64 00 66 00
+2a 00 96 00 84 1c 00 20 00 00 8d 02 04 00 04 00
2a 00 80 00 84 1c 00 20 00 00 8d 00 02 00 02 00
-(+f0.0) if(8) JIP: 84 { align16 1Q };
-(+f0.0) if(8) JIP: 32 { align1 1Q };
-(+f0.0) if(16) JIP: 32 { align1 1H };
-(+f0.0.x) if(8) JIP: 18 { align16 1Q };
-(-f0.0) if(8) JIP: 12 { align1 1Q };
-(-f0.0) if(16) JIP: 12 { align1 1H };
+(+f0.0) if(8) JIP: LABEL0 { align16 1Q };
+LABEL0:
+(+f0.0) if(8) JIP: LABEL1 { align1 1Q };
+(+f0.0) if(16) JIP: LABEL1 { align1 1H };
+(+f0.0.x) if(8) JIP: LABEL1 { align16 1Q };
+(-f0.0) if(8) JIP: LABEL1 { align1 1Q };
+(-f0.0) if(16) JIP: LABEL1 { align1 1H };
+LABEL1:
-22 01 61 00 8f 10 54 00 04 00 0e 00 04 00 0e 00
-22 00 61 00 8f 10 20 00 00 00 00 00 00 00 00 00
-22 00 81 00 8f 10 20 00 00 00 00 00 00 00 00 00
-22 01 62 00 8f 10 12 00 04 00 0e 00 04 00 0e 00
-22 00 71 00 8f 10 0c 00 00 00 00 00 00 00 00 00
-22 00 91 00 8f 10 0c 00 00 00 00 00 00 00 00 00
+22 01 61 00 8f 10 02 00 04 00 0e 00 04 00 0e 00
+22 00 61 00 8f 10 0a 00 00 00 00 00 00 00 00 00
+22 00 81 00 8f 10 08 00 00 00 00 00 00 00 00 00
+22 01 62 00 8f 10 06 00 04 00 0e 00 04 00 0e 00
+22 00 71 00 8f 10 04 00 00 00 00 00 00 00 00 00
+22 00 91 00 8f 10 02 00 00 00 00 00 00 00 00 00
-while(8) JIP: -76 { align16 1Q };
-while(8) JIP: -108 { align1 1Q };
-while(16) JIP: -108 { align1 1H };
-(-f0.0) while(8) JIP: -48 { align1 1Q };
-(-f0.0) while(16) JIP: -48 { align1 1H };
-(-f0.0.x) while(8) JIP: -48 { align16 1Q };
+LABEL0:
+while(8) JIP: LABEL0 { align16 1Q };
+while(8) JIP: LABEL0 { align1 1Q };
+while(16) JIP: LABEL0 { align1 1H };
+(-f0.0) while(8) JIP: LABEL0 { align1 1Q };
+(-f0.0) while(16) JIP: LABEL0 { align1 1H };
+(-f0.0.x) while(8) JIP: LABEL0 { align16 1Q };
-27 01 60 00 8f 10 b4 ff 04 00 6e 00 04 00 6e 00
-27 00 60 00 8f 10 94 ff 00 00 8d 00 00 00 8d 00
-27 00 80 00 8f 10 94 ff 00 00 8d 00 00 00 8d 00
-27 00 71 00 8f 10 d0 ff 00 00 8d 00 00 00 8d 00
-27 00 91 00 8f 10 d0 ff 00 00 8d 00 00 00 8d 00
-27 01 72 00 8f 10 d0 ff 04 00 6e 00 04 00 6e 00
+27 01 60 00 8f 10 00 00 04 00 6e 00 04 00 6e 00
+27 00 60 00 8f 10 fe ff 00 00 8d 00 00 00 8d 00
+27 00 80 00 8f 10 fc ff 00 00 8d 00 00 00 8d 00
+27 00 71 00 8f 10 fa ff 00 00 8d 00 00 00 8d 00
+27 00 91 00 8f 10 f8 ff 00 00 8d 00 00 00 8d 00
+27 01 72 00 8f 10 f6 ff 04 00 6e 00 04 00 6e 00
-break(8) JIP: 2 UIP: 8 { align1 1Q };
-break(16) JIP: 2 UIP: 8 { align1 1H };
-break(8) JIP: 2 UIP: 10 { align16 1Q };
-(+f0.0) break(8) JIP: 4 UIP: 10 { align1 1Q };
-(+f0.0) break(16) JIP: 4 UIP: 10 { align1 1H };
-(+f0.0.x) break(8) JIP: 110 UIP: 110 { align16 1Q };
+break(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+break(16) JIP: LABEL0 UIP: LABEL1 { align1 1H };
+break(8) JIP: LABEL0 UIP: LABEL1 { align16 1Q };
+LABEL0:
+(+f0.0) break(8) JIP: LABEL1 UIP: LABEL1 { align1 1Q };
+(+f0.0) break(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+(+f0.0.x) break(8) JIP: LABEL1 UIP: LABEL1 { align16 1Q };
+LABEL1:
-28 00 60 00 84 1c 00 20 00 00 8d 00 02 00 08 00
-28 00 80 00 84 1c 00 20 00 00 8d 00 02 00 08 00
-28 01 60 00 84 1c 0f 20 04 00 6e 00 02 00 0a 00
-28 00 61 00 84 1c 00 20 00 00 8d 00 04 00 0a 00
-28 00 81 00 84 1c 00 20 00 00 8d 00 04 00 0a 00
-28 01 62 00 84 1c 0f 20 04 00 6e 00 6e 00 6e 00
+28 00 60 00 84 1c 00 20 00 00 8d 00 06 00 0c 00
+28 00 80 00 84 1c 00 20 00 00 8d 00 04 00 0a 00
+28 01 60 00 84 1c 0f 20 04 00 6e 00 02 00 08 00
+28 00 61 00 84 1c 00 20 00 00 8d 00 06 00 06 00
+28 00 81 00 84 1c 00 20 00 00 8d 00 04 00 04 00
+28 01 62 00 84 1c 0f 20 04 00 6e 00 02 00 02 00
-cont(8) JIP: 2 UIP: 8 { align1 1Q };
-cont(16) JIP: 2 UIP: 8 { align1 1H };
-cont(8) JIP: 2 UIP: 8 { align16 1Q };
+cont(8) JIP: LABEL0 UIP: LABEL2 { align1 1Q };
+LABEL0:
+cont(16) JIP: LABEL1 UIP: LABEL2 { align1 1H };
+LABEL1:
+cont(8) JIP: LABEL2 UIP: LABEL2 { align16 1Q };
+LABEL2:
-29 00 60 00 00 1c 00 34 00 14 60 00 02 00 08 00
-29 00 80 00 00 1c 00 34 00 14 60 00 02 00 08 00
-29 01 60 00 00 1c 0f 34 04 14 6e 00 02 00 08 00
+29 00 60 00 00 1c 00 34 00 14 60 00 02 00 06 00
+29 00 80 00 00 1c 00 34 00 14 60 00 02 00 04 00
+29 01 60 00 00 1c 0f 34 04 14 6e 00 02 00 02 00
-else(8) JIP: 4 { align16 1Q };
-else(8) JIP: 72 { align1 1Q };
-else(16) JIP: 72 { align1 1H };
+else(8) JIP: LABEL0 { align16 1Q };
+else(8) JIP: LABEL0 { align1 1Q };
+else(16) JIP: LABEL0 { align1 1H };
+LABEL0:
\ No newline at end of file
-24 01 60 00 84 3c 0f 20 04 00 6e 00 04 00 00 00
-24 00 60 00 84 3c 00 20 00 00 8d 00 48 00 00 00
-24 00 80 00 84 3c 00 20 00 00 8d 00 48 00 00 00
+24 01 60 00 84 3c 0f 20 04 00 6e 00 06 00 00 00
+24 00 60 00 84 3c 00 20 00 00 8d 00 04 00 00 00
+24 00 80 00 84 3c 00 20 00 00 8d 00 02 00 00 00
-endif(8) JIP: 6 { align1 1Q };
-endif(16) JIP: 6 { align1 1H };
-endif(8) JIP: 2 { align16 1Q };
+endif(8) JIP: LABEL0 { align1 1Q };
+LABEL0:
+endif(16) JIP: LABEL1 { align1 1H };
+endif(8) JIP: LABEL1 { align16 1Q };
+LABEL1:
\ No newline at end of file
-25 00 60 00 84 3c 00 20 00 00 8d 00 06 00 00 00
-25 00 80 00 84 3c 00 20 00 00 8d 00 06 00 00 00
+25 00 60 00 84 3c 00 20 00 00 8d 00 02 00 00 00
+25 00 80 00 84 3c 00 20 00 00 8d 00 04 00 00 00
25 01 60 00 84 3c 0f 20 04 00 6e 00 02 00 00 00
-(-f0.1.any4h) halt(8) JIP: 72 UIP: 74 { align1 1Q };
-halt(8) JIP: 2 UIP: 2 { align1 1Q };
-(-f0.1.any4h) halt(16) JIP: 72 UIP: 74 { align1 1H };
-halt(16) JIP: 2 UIP: 2 { align1 1H };
+(-f0.1.any4h) halt(8) JIP: LABEL0 UIP: LABEL0 { align1 1Q };
+halt(8) JIP: LABEL1 UIP: LABEL1 { align1 1Q };
+LABEL1:
+(-f0.1.any4h) halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+LABEL0:
-2a 00 76 00 84 1c 00 20 00 00 8d 02 48 00 4a 00
+2a 00 76 00 84 1c 00 20 00 00 8d 02 08 00 08 00
2a 00 60 00 84 1c 00 20 00 00 8d 00 02 00 02 00
-2a 00 96 00 84 1c 00 20 00 00 8d 02 48 00 4a 00
+2a 00 96 00 84 1c 00 20 00 00 8d 02 04 00 04 00
2a 00 80 00 84 1c 00 20 00 00 8d 00 02 00 02 00
-(-f0.0) if(8) JIP: 8 UIP: 8 { align1 1Q };
-(-f0.0) if(16) JIP: 8 UIP: 8 { align1 1H };
-(+f0.0.x) if(8) JIP: 18 UIP: 18 { align16 1Q };
-(+f0.0) if(8) JIP: 14 UIP: 14 { align16 1Q };
-(+f0.0) if(8) JIP: 12 UIP: 82 { align1 1Q };
-(+f0.0) if(16) JIP: 12 UIP: 82 { align1 1H };
+(-f0.0) if(8) JIP: LABEL0 UIP: LABEL2 { align1 1Q };
+LABEL0:
+(-f0.0) if(16) JIP: LABEL2 UIP: LABEL1 { align1 1H };
+(+f0.0.x) if(8) JIP: LABEL2 UIP: LABEL1 { align16 1Q };
+LABEL1:
+(+f0.0) if(8) JIP: LABEL2 UIP: LABEL2 { align16 1Q };
+(+f0.0) if(8) JIP: LABEL2 UIP: LABEL2 { align1 1Q };
+(+f0.0) if(16) JIP: LABEL2 UIP: LABEL2 { align1 1H };
+LABEL2:
-22 00 71 00 84 3c 00 20 00 00 00 00 08 00 08 00
-22 00 91 00 84 3c 00 20 00 00 00 00 08 00 08 00
-22 01 62 00 84 3c 0f 20 04 00 0e 00 12 00 12 00
-22 01 61 00 84 3c 0f 20 04 00 0e 00 0e 00 0e 00
-22 00 61 00 84 3c 00 20 00 00 00 00 0c 00 52 00
-22 00 81 00 84 3c 00 20 00 00 00 00 0c 00 52 00
+22 00 71 00 84 3c 00 20 00 00 00 00 02 00 0c 00
+22 00 91 00 84 3c 00 20 00 00 00 00 0a 00 04 00
+22 01 62 00 84 3c 0f 20 04 00 0e 00 08 00 02 00
+22 01 61 00 84 3c 0f 20 04 00 0e 00 06 00 06 00
+22 00 61 00 84 3c 00 20 00 00 00 00 04 00 04 00
+22 00 81 00 84 3c 00 20 00 00 00 00 02 00 02 00
-while(8) JIP: -20 { align1 1Q };
-while(16) JIP: -20 { align1 1H };
-while(8) JIP: -30 { align16 1Q };
-(-f0.0) while(8) JIP: -48 { align1 1Q };
-(-f0.0) while(16) JIP: -48 { align1 1H };
-(-f0.0.x) while(8) JIP: -48 { align16 1Q };
+LABEL0:
+while(8) JIP: LABEL0 { align1 1Q };
+while(16) JIP: LABEL0 { align1 1H };
+while(8) JIP: LABEL0 { align16 1Q };
+(-f0.0) while(8) JIP: LABEL0 { align1 1Q };
+(-f0.0) while(16) JIP: LABEL0 { align1 1H };
+(-f0.0.x) while(8) JIP: LABEL0 { align16 1Q };
-27 00 60 00 84 3c 00 20 00 00 8d 00 ec ff 00 00
-27 00 80 00 84 3c 00 20 00 00 8d 00 ec ff 00 00
-27 01 60 00 84 3c 0f 20 04 00 6e 00 e2 ff 00 00
-27 00 71 00 84 3c 00 20 00 00 8d 00 d0 ff 00 00
-27 00 91 00 84 3c 00 20 00 00 8d 00 d0 ff 00 00
-27 01 72 00 84 3c 0f 20 04 00 6e 00 d0 ff 00 00
+27 00 60 00 84 3c 00 20 00 00 8d 00 00 00 00 00
+27 00 80 00 84 3c 00 20 00 00 8d 00 fe ff 00 00
+27 01 60 00 84 3c 0f 20 04 00 6e 00 fc ff 00 00
+27 00 71 00 84 3c 00 20 00 00 8d 00 fa ff 00 00
+27 00 91 00 84 3c 00 20 00 00 8d 00 f8 ff 00 00
+27 01 72 00 84 3c 0f 20 04 00 6e 00 f6 ff 00 00
-break(8) JIP: 2 UIP: 40 { align1 1Q };
-break(16) JIP: 2 UIP: 48 { align1 1H };
-(+f0.0.x) break(8) JIP: 110 UIP: 110 { align16 1Q };
-(+f0.0) break(8) JIP: 2 UIP: 12 { align1 1Q };
-(+f0.0) break(16) JIP: 2 UIP: 12 { align1 1H };
-break(8) JIP: 2 UIP: 38 { align16 1Q };
+break(8) JIP: LABEL0 UIP: LABEL0 { align1 1Q };
+LABEL0:
+break(16) JIP: LABEL1 UIP: LABEL2 { align1 1H };
+(+f0.0.x) break(8) JIP: LABEL1 UIP: LABEL2 { align16 1Q };
+LABEL1:
+(+f0.0) break(8) JIP: LABEL2 UIP: LABEL2 { align1 1Q };
+(+f0.0) break(16) JIP: LABEL2 UIP: LABEL2 { align1 1H };
+break(8) JIP: LABEL2 UIP: LABEL2 { align16 1Q };
+LABEL2:
\ No newline at end of file
-28 00 60 00 84 1c 00 20 00 00 8d 00 02 00 28 00
-28 00 80 00 84 1c 00 20 00 00 8d 00 02 00 30 00
-28 01 62 00 84 1c 0f 20 04 00 6e 00 6e 00 6e 00
-28 00 61 00 84 1c 00 20 00 00 8d 00 02 00 0c 00
-28 00 81 00 84 1c 00 20 00 00 8d 00 02 00 0c 00
-28 01 60 00 84 1c 0f 20 04 00 6e 00 02 00 26 00
+28 00 60 00 84 1c 00 20 00 00 8d 00 02 00 02 00
+28 00 80 00 84 1c 00 20 00 00 8d 00 04 00 0a 00
+28 01 62 00 84 1c 0f 20 04 00 6e 00 02 00 08 00
+28 00 61 00 84 1c 00 20 00 00 8d 00 06 00 06 00
+28 00 81 00 84 1c 00 20 00 00 8d 00 04 00 04 00
+28 01 60 00 84 1c 0f 20 04 00 6e 00 02 00 02 00
-else(8) JIP: 12 { align1 1Q };
-else(16) JIP: 12 { align1 1H };
-else(8) JIP: 18 { align16 1Q };
+else(8) JIP: LABEL0 { align1 1Q };
+else(16) JIP: LABEL0 { align1 1H };
+else(8) JIP: LABEL0 { align16 1Q };
+LABEL0:
-24 00 60 00 84 3c 00 20 00 00 8d 00 0c 00 00 00
-24 00 80 00 84 3c 00 20 00 00 8d 00 0c 00 00 00
-24 01 60 00 84 3c 0f 20 04 00 6e 00 12 00 00 00
+24 00 60 00 84 3c 00 20 00 00 8d 00 06 00 00 00
+24 00 80 00 84 3c 00 20 00 00 8d 00 04 00 00 00
+24 01 60 00 84 3c 0f 20 04 00 6e 00 02 00 00 00
-endif(8) JIP: 2 { align16 1Q };
-endif(8) JIP: 2 { align1 1Q };
-endif(16) JIP: 2 { align1 1H };
+endif(8) JIP: LABEL1 { align16 1Q };
+LABEL1:
+endif(8) JIP: LABEL2 { align1 1Q };
+LABEL2:
+endif(16) JIP: LABEL3 { align1 1H };
+LABEL3:
-(-f0.1.any4h) halt(8) JIP: 72 UIP: 74 { align1 1Q };
-halt(8) JIP: 2 UIP: 2 { align1 1Q };
-(-f0.1.any4h) halt(16) JIP: 76 UIP: 78 { align1 1H };
-halt(16) JIP: 2 UIP: 2 { align1 1H };
+(-f0.1.any4h) halt(8) JIP: LABEL0 UIP: LABEL0 { align1 1Q };
+halt(8) JIP: LABEL1 UIP: LABEL1 { align1 1Q };
+LABEL1:
+(-f0.1.any4h) halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+LABEL0:
-2a 00 76 00 84 1c 00 20 00 00 8d 02 48 00 4a 00
+2a 00 76 00 84 1c 00 20 00 00 8d 02 08 00 08 00
2a 00 60 00 84 1c 00 20 00 00 8d 00 02 00 02 00
-2a 00 96 00 84 1c 00 20 00 00 8d 02 4c 00 4e 00
+2a 00 96 00 84 1c 00 20 00 00 8d 02 04 00 04 00
2a 00 80 00 84 1c 00 20 00 00 8d 00 02 00 02 00
-(+f0.0.x) if(8) JIP: 18 UIP: 18 { align16 1Q };
-(+f0.0) if(8) JIP: 14 UIP: 14 { align16 1Q };
-(+f0.0) if(8) JIP: 32 UIP: 96 { align1 1Q };
-(+f0.0) if(16) JIP: 32 UIP: 96 { align1 1H };
-(-f0.0) if(8) JIP: 10 UIP: 10 { align1 1Q };
-(-f0.0) if(16) JIP: 10 UIP: 10 { align1 1H };
+(+f0.0.x) if(8) JIP: LABEL0 UIP: LABEL2 { align16 1Q };
+LABEL0:
+(+f0.0) if(8) JIP: LABEL2 UIP: LABEL1 { align16 1Q };
+(+f0.0) if(8) JIP: LABEL2 UIP: LABEL1 { align1 1Q };
+LABEL1:
+(+f0.0) if(16) JIP: LABEL2 UIP: LABEL2 { align1 1H };
+(-f0.0) if(8) JIP: LABEL2 UIP: LABEL2 { align1 1Q };
+(-f0.0) if(16) JIP: LABEL2 UIP: LABEL2 { align1 1H };
+LABEL2:
-22 01 62 00 84 3c 0f 20 04 00 0e 00 12 00 12 00
-22 01 61 00 84 3c 0f 20 04 00 0e 00 0e 00 0e 00
-22 00 61 00 84 3c 00 20 00 00 00 00 20 00 60 00
-22 00 81 00 84 3c 00 20 00 00 00 00 20 00 60 00
-22 00 71 00 84 3c 00 20 00 00 00 00 0a 00 0a 00
-22 00 91 00 84 3c 00 20 00 00 00 00 0a 00 0a 00
+22 01 62 00 84 3c 0f 20 04 00 0e 00 02 00 0c 00
+22 01 61 00 84 3c 0f 20 04 00 0e 00 0a 00 04 00
+22 00 61 00 84 3c 00 20 00 00 00 00 08 00 02 00
+22 00 81 00 84 3c 00 20 00 00 00 00 06 00 06 00
+22 00 71 00 84 3c 00 20 00 00 00 00 04 00 04 00
+22 00 91 00 84 3c 00 20 00 00 00 00 02 00 02 00
-while(8) JIP: -50 { align1 1Q };
-while(16) JIP: -58 { align1 1H };
-while(8) JIP: -8 { align16 1Q };
-(-f0.0) while(8) JIP: -10 { align1 1Q };
-(-f0.0) while(16) JIP: -10 { align1 1H };
+LABEL0:
+while(8) JIP: LABEL0 { align1 1Q };
+while(16) JIP: LABEL0 { align1 1H };
+while(8) JIP: LABEL0 { align16 1Q };
+(-f0.0) while(8) JIP: LABEL0 { align1 1Q };
+(-f0.0) while(16) JIP: LABEL0 { align1 1H };
-27 00 60 00 84 3c 00 20 00 00 8d 00 ce ff 00 00
-27 00 80 00 84 3c 00 20 00 00 8d 00 c6 ff 00 00
-27 01 60 00 84 3c 0f 20 04 00 6e 00 f8 ff 00 00
-27 00 71 00 84 3c 00 20 00 00 8d 00 f6 ff 00 00
-27 00 91 00 84 3c 00 20 00 00 8d 00 f6 ff 00 00
+27 00 60 00 84 3c 00 20 00 00 8d 00 00 00 00 00
+27 00 80 00 84 3c 00 20 00 00 8d 00 fe ff 00 00
+27 01 60 00 84 3c 0f 20 04 00 6e 00 fc ff 00 00
+27 00 71 00 84 3c 00 20 00 00 8d 00 fa ff 00 00
+27 00 91 00 84 3c 00 20 00 00 8d 00 f8 ff 00 00
-break(8) JIP: 16 UIP: 64 { align1 1Q };
-break(16) JIP: 16 UIP: 64 { align1 1H };
-(+f0.0) break(8) JIP: 32 UIP: 80 { align1 1Q };
-(+f0.0) break(16) JIP: 32 UIP: 80 { align1 1H };
+break(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+break(16) JIP: LABEL0 UIP: LABEL1 { align1 1H };
+LABEL0:
+(+f0.0) break(8) JIP: LABEL1 UIP: LABEL1 { align1 1Q };
+(+f0.0) break(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+LABEL1:
-28 00 60 00 20 0e 00 20 40 00 00 00 10 00 00 00
-28 00 80 00 20 0e 00 20 40 00 00 00 10 00 00 00
-28 00 61 00 20 0e 00 20 50 00 00 00 20 00 00 00
-28 00 81 00 20 0e 00 20 50 00 00 00 20 00 00 00
+28 00 60 00 20 0e 00 20 40 00 00 00 20 00 00 00
+28 00 80 00 20 0e 00 20 30 00 00 00 10 00 00 00
+28 00 61 00 20 0e 00 20 20 00 00 00 20 00 00 00
+28 00 81 00 20 0e 00 20 10 00 00 00 10 00 00 00
-cont(8) JIP: 16 UIP: 64 { align1 1Q };
-cont(16) JIP: 16 UIP: 64 { align1 1H };
+cont(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+LABEL0:
+cont(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+LABEL1:
-29 00 60 00 00 0e 00 34 40 00 00 00 10 00 00 00
-29 00 80 00 00 0e 00 34 40 00 00 00 10 00 00 00
+29 00 60 00 00 0e 00 34 20 00 00 00 10 00 00 00
+29 00 80 00 00 0e 00 34 10 00 00 00 10 00 00 00
-else(8) JIP: 288 UIP: 288 { align1 1Q };
-else(16) JIP: 240 UIP: 240 { align1 1H };
-else(32) JIP: 144 UIP: 144 { align1 };
+else(8) JIP: LABEL0 UIP: LABEL0 { align1 1Q };
+else(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+else(32) JIP: LABEL0 UIP: LABEL0 { align1 };
+LABEL0:
\ No newline at end of file
-24 00 60 00 20 0e 00 20 20 01 00 00 20 01 00 00
-24 00 80 00 20 0e 00 20 f0 00 00 00 f0 00 00 00
-24 00 a0 00 20 0e 00 20 90 00 00 00 90 00 00 00
+24 00 60 00 20 0e 00 20 30 00 00 00 30 00 00 00
+24 00 80 00 20 0e 00 20 20 00 00 00 20 00 00 00
+24 00 a0 00 20 0e 00 20 10 00 00 00 10 00 00 00
-endif(8) JIP: 80 { align1 1Q };
-endif(16) JIP: 48 { align1 1H };
-endif(32) JIP: 16 { align1 };
+endif(8) JIP: LABEL0 { align1 1Q };
+endif(16) JIP: LABEL0 { align1 1H };
+endif(32) JIP: LABEL0 { align1 };
+LABEL0:
-25 00 60 00 00 0e 00 00 00 00 00 08 50 00 00 00
-25 00 80 00 00 0e 00 00 00 00 00 08 30 00 00 00
+25 00 60 00 00 0e 00 00 00 00 00 08 30 00 00 00
+25 00 80 00 00 0e 00 00 00 00 00 08 20 00 00 00
25 00 a0 00 00 0e 00 00 00 00 00 08 10 00 00 00
-(-f0.1.any4h) halt(8) JIP: 176 UIP: 192 { align1 1Q };
-halt(8) JIP: 16 UIP: 16 { align1 1Q };
-(-f0.1.any4h) halt(16) JIP: 176 UIP: 192 { align1 1H };
-halt(16) JIP: 16 UIP: 16 { align1 1H };
+(-f0.1.any4h) halt(8) JIP: LABEL0 UIP: LABEL0 { align1 1Q };
+halt(8) JIP: LABEL1 UIP: LABEL1 { align1 1Q };
+LABEL1:
+(-f0.1.any4h) halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+LABEL0:
\ No newline at end of file
-2a 00 76 00 21 0e 00 20 c0 00 00 00 b0 00 00 00
+2a 00 76 00 21 0e 00 20 40 00 00 00 40 00 00 00
2a 00 60 00 20 0e 00 20 10 00 00 00 10 00 00 00
-2a 00 96 00 21 0e 00 20 c0 00 00 00 b0 00 00 00
+2a 00 96 00 21 0e 00 20 20 00 00 00 20 00 00 00
2a 00 80 00 20 0e 00 20 10 00 00 00 10 00 00 00
-(+f0.0) if(8) JIP: 1376 UIP: 1392 { align1 1Q };
-(-f0.0) if(8) JIP: 4704 UIP: 4704 { align1 1Q };
-(-f0.0) if(16) JIP: 64 UIP: 64 { align1 1H };
-(+f0.0) if(16) JIP: 96 UIP: 320 { align1 1H };
-(+f0.0) if(32) JIP: 80 UIP: 80 { align1 };
+(+f0.0) if(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+(-f0.0) if(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+LABEL0:
+(-f0.0) if(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+(+f0.0) if(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+(+f0.0) if(32) JIP: LABEL1 UIP: LABEL1 { align1 };
+LABEL1:
-22 00 61 00 20 0e 00 20 70 05 00 00 60 05 00 00
-22 00 71 00 20 0e 00 20 60 12 00 00 60 12 00 00
-22 00 91 00 20 0e 00 20 40 00 00 00 40 00 00 00
-22 00 81 00 20 0e 00 20 40 01 00 00 60 00 00 00
-22 00 a1 00 20 0e 00 20 50 00 00 00 50 00 00 00
+22 00 61 00 20 0e 00 20 50 00 00 00 20 00 00 00
+22 00 71 00 20 0e 00 20 40 00 00 00 10 00 00 00
+22 00 91 00 20 0e 00 20 30 00 00 00 30 00 00 00
+22 00 81 00 20 0e 00 20 20 00 00 00 20 00 00 00
+22 00 a1 00 20 0e 00 20 10 00 00 00 10 00 00 00
-while(8) JIP: -160 { align1 1Q };
-while(16) JIP: -160 { align1 1H };
-(-f0.0) while(8) JIP: -384 { align1 1Q };
-(-f0.0) while(16) JIP: -384 { align1 1H };
+LABEL0:
+while(8) JIP: LABEL0 { align1 1Q };
+while(16) JIP: LABEL0 { align1 1H };
+(-f0.0) while(8) JIP: LABEL0 { align1 1Q };
+(-f0.0) while(16) JIP: LABEL0 { align1 1H };
-27 00 60 00 20 0e 00 20 00 00 00 08 60 ff ff ff
-27 00 80 00 20 0e 00 20 00 00 00 08 60 ff ff ff
-27 00 71 00 20 0e 00 20 00 00 00 08 80 fe ff ff
-27 00 91 00 20 0e 00 20 00 00 00 08 80 fe ff ff
+27 00 60 00 20 0e 00 20 00 00 00 08 00 00 00 00
+27 00 80 00 20 0e 00 20 00 00 00 08 f0 ff ff ff
+27 00 71 00 20 0e 00 20 00 00 00 08 e0 ff ff ff
+27 00 91 00 20 0e 00 20 00 00 00 08 d0 ff ff ff
-break(8) JIP: 16 UIP: 64 { align1 1Q };
-break(16) JIP: 16 UIP: 64 { align1 1H };
-(+f0.0) break(8) JIP: 32 UIP: 80 { align1 1Q };
-(+f0.0) break(16) JIP: 32 UIP: 80 { align1 1H };
+break(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+break(16) JIP: LABEL0 UIP: LABEL1 { align1 1H };
+LABEL0:
+(+f0.0) break(8) JIP: LABEL1 UIP: LABEL1 { align1 1Q };
+(+f0.0) break(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+LABEL1:
-28 00 60 00 20 0e 00 20 40 00 00 00 10 00 00 00
-28 00 80 00 20 0e 00 20 40 00 00 00 10 00 00 00
-28 00 61 00 20 0e 00 20 50 00 00 00 20 00 00 00
-28 00 81 00 20 0e 00 20 50 00 00 00 20 00 00 00
+28 00 60 00 20 0e 00 20 40 00 00 00 20 00 00 00
+28 00 80 00 20 0e 00 20 30 00 00 00 10 00 00 00
+28 00 61 00 20 0e 00 20 20 00 00 00 20 00 00 00
+28 00 81 00 20 0e 00 20 10 00 00 00 10 00 00 00
-cont(8) JIP: 16 UIP: 64 { align1 1Q };
-cont(16) JIP: 16 UIP: 64 { align1 1H };
+cont(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+LABEL0:
+cont(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+LABEL1:
-29 00 60 00 00 0e 00 34 40 00 00 00 10 00 00 00
-29 00 80 00 00 0e 00 34 40 00 00 00 10 00 00 00
+29 00 60 00 00 0e 00 34 20 00 00 00 10 00 00 00
+29 00 80 00 00 0e 00 34 10 00 00 00 10 00 00 00
-else(8) JIP: 288 UIP: 288 { align1 1Q };
-else(16) JIP: 240 UIP: 240 { align1 1H };
-else(32) JIP: 272 UIP: 272 { align1 };
+else(8) JIP: LABEL0 UIP: LABEL0 { align1 1Q };
+else(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+else(32) JIP: LABEL0 UIP: LABEL0 { align1 };
+LABEL0:
\ No newline at end of file
-24 00 60 00 20 0e 00 20 20 01 00 00 20 01 00 00
-24 00 80 00 20 0e 00 20 f0 00 00 00 f0 00 00 00
-24 00 a0 00 20 0e 00 20 10 01 00 00 10 01 00 00
+24 00 60 00 20 0e 00 20 30 00 00 00 30 00 00 00
+24 00 80 00 20 0e 00 20 20 00 00 00 20 00 00 00
+24 00 a0 00 20 0e 00 20 10 00 00 00 10 00 00 00
-endif(8) JIP: 80 { align1 1Q };
-endif(16) JIP: 48 { align1 1H };
-endif(32) JIP: 16 { align1 };
+endif(8) JIP: LABEL0 { align1 1Q };
+endif(16) JIP: LABEL0 { align1 1H };
+endif(32) JIP: LABEL0 { align1 };
+LABEL0:
-25 00 60 00 00 0e 00 00 00 00 00 08 50 00 00 00
-25 00 80 00 00 0e 00 00 00 00 00 08 30 00 00 00
+25 00 60 00 00 0e 00 00 00 00 00 08 30 00 00 00
+25 00 80 00 00 0e 00 00 00 00 00 08 20 00 00 00
25 00 a0 00 00 0e 00 00 00 00 00 08 10 00 00 00
-(-f0.1.any4h) halt(8) JIP: 176 UIP: 192 { align1 1Q };
-halt(8) JIP: 16 UIP: 16 { align1 1Q };
-(-f0.1.any4h) halt(16) JIP: 176 UIP: 192 { align1 1H };
-halt(16) JIP: 16 UIP: 16 { align1 1H };
+(-f0.1.any4h) halt(8) JIP: LABEL0 UIP: LABEL0 { align1 1Q };
+halt(8) JIP: LABEL1 UIP: LABEL1 { align1 1Q };
+LABEL1:
+(-f0.1.any4h) halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+halt(16) JIP: LABEL0 UIP: LABEL0 { align1 1H };
+LABEL0:
\ No newline at end of file
-2a 00 76 00 21 0e 00 20 c0 00 00 00 b0 00 00 00
+2a 00 76 00 21 0e 00 20 40 00 00 00 40 00 00 00
2a 00 60 00 20 0e 00 20 10 00 00 00 10 00 00 00
-2a 00 96 00 21 0e 00 20 c0 00 00 00 b0 00 00 00
+2a 00 96 00 21 0e 00 20 20 00 00 00 20 00 00 00
2a 00 80 00 20 0e 00 20 10 00 00 00 10 00 00 00
-(+f0.0) if(8) JIP: 1376 UIP: 1392 { align1 1Q };
-(-f0.0) if(8) JIP: 4704 UIP: 4704 { align1 1Q };
-(-f0.0) if(16) JIP: 64 UIP: 64 { align1 1H };
-(+f0.0) if(16) JIP: 96 UIP: 320 { align1 1H };
-(+f0.0) if(32) JIP: 80 UIP: 80 { align1 };
+(+f0.0) if(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+(-f0.0) if(8) JIP: LABEL0 UIP: LABEL1 { align1 1Q };
+LABEL0:
+(-f0.0) if(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+(+f0.0) if(16) JIP: LABEL1 UIP: LABEL1 { align1 1H };
+(+f0.0) if(32) JIP: LABEL1 UIP: LABEL1 { align1 };
+LABEL1:
-22 00 61 00 20 0e 00 20 70 05 00 00 60 05 00 00
-22 00 71 00 20 0e 00 20 60 12 00 00 60 12 00 00
-22 00 91 00 20 0e 00 20 40 00 00 00 40 00 00 00
-22 00 81 00 20 0e 00 20 40 01 00 00 60 00 00 00
-22 00 a1 00 20 0e 00 20 50 00 00 00 50 00 00 00
+22 00 61 00 20 0e 00 20 50 00 00 00 20 00 00 00
+22 00 71 00 20 0e 00 20 40 00 00 00 10 00 00 00
+22 00 91 00 20 0e 00 20 30 00 00 00 30 00 00 00
+22 00 81 00 20 0e 00 20 20 00 00 00 20 00 00 00
+22 00 a1 00 20 0e 00 20 10 00 00 00 10 00 00 00
-while(8) JIP: -160 { align1 1Q };
-while(16) JIP: -160 { align1 1H };
-(-f0.0) while(8) JIP: -384 { align1 1Q };
-(-f0.0) while(16) JIP: -384 { align1 1H };
+LABEL0:
+while(8) JIP: LABEL0 { align1 1Q };
+while(16) JIP: LABEL0 { align1 1H };
+(-f0.0) while(8) JIP: LABEL0 { align1 1Q };
+(-f0.0) while(16) JIP: LABEL0 { align1 1H };
-27 00 60 00 20 0e 00 20 00 00 00 08 60 ff ff ff
-27 00 80 00 20 0e 00 20 00 00 00 08 60 ff ff ff
-27 00 71 00 20 0e 00 20 00 00 00 08 80 fe ff ff
-27 00 91 00 20 0e 00 20 00 00 00 08 80 fe ff ff
+27 00 60 00 20 0e 00 20 00 00 00 08 00 00 00 00
+27 00 80 00 20 0e 00 20 00 00 00 08 f0 ff ff ff
+27 00 71 00 20 0e 00 20 00 00 00 08 e0 ff ff ff
+27 00 91 00 20 0e 00 20 00 00 00 08 d0 ff ff ff