assert(p->num_inst <= p->max_inst);
if (p->print) {
indent(p);
- printf("%s\tr%d, r%d, r%d\n", rem_prefix(name), rT, rA, rB);
+ printf("%s\t$%d, $%d, $%d\n", rem_prefix(name), rT, rA, rB);
}
}
assert(p->num_inst <= p->max_inst);
if (p->print) {
indent(p);
- printf("%s\tr%d, r%d, r%d, r%d\n", rem_prefix(name), rT, rA, rB, rC);
+ printf("%s\t$%d, $%d, $%d, $%d\n", rem_prefix(name), rT, rA, rB, rC);
}
}
assert(p->num_inst <= p->max_inst);
if (p->print) {
indent(p);
- printf("%s\tr%d, r%d, 0x%x\n", rem_prefix(name), rT, rA, imm);
+ printf("%s\t$%d, $%d, 0x%x\n", rem_prefix(name), rT, rA, imm);
}
}
assert(p->num_inst <= p->max_inst);
if (p->print) {
indent(p);
- printf("%s\tr%d, r%d, 0x%x\n", rem_prefix(name), rT, rA, imm);
+ printf("%s\t$%d, $%d, 0x%x\n", rem_prefix(name), rT, rA, imm);
}
}
assert(p->num_inst <= p->max_inst);
if (p->print) {
indent(p);
- printf("%s\tr%d, r%d, 0x%x\n", rem_prefix(name), rT, rA, imm);
+ if (strcmp(name, "spe_lqd") == 0 ||
+ strcmp(name, "spe_stqd") == 0)
+ printf("%s\t$%d, 0x%x($%d)\n", rem_prefix(name), rT, imm, rA);
+ else
+ printf("%s\t$%d, $%d, 0x%x\n", rem_prefix(name), rT, rA, imm);
}
}
assert(p->num_inst <= p->max_inst);
if (p->print) {
indent(p);
- printf("%s\tr%d, 0x%x\n", rem_prefix(name), rT, imm);
+ printf("%s\t$%d, 0x%x\n", rem_prefix(name), rT, imm);
}
}
assert(p->num_inst <= p->max_inst);
if (p->print) {
indent(p);
- printf("%s\tr%d, 0x%x\n", rem_prefix(name), rT, imm);
+ printf("%s\t$%d, 0x%x\n", rem_prefix(name), rT, imm);
}
}
p->indent += rel_indent;
indent(p);
p->indent -= rel_indent;
- printf("%s\n", s);
+ printf("# %s\n", s);
}
}