| 1666 | } |
| 1667 | |
| 1668 | static void logRE(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1669 | out.append(inst->name); |
| 1670 | out.append(" "); |
| 1671 | if (inst->width==32) { |
| 1672 | outR32(op->reg, out); |
| 1673 | out.append(","); |
| 1674 | outE32(op, out); |
| 1675 | } else if (inst->width==16) { |
| 1676 | outR16(op->reg, out); |
| 1677 | out.append(","); |
| 1678 | outE16(op, out); |
| 1679 | } else if (inst->width==8) { |
| 1680 | outR8(op->reg, out); |
| 1681 | out.append(","); |
| 1682 | outE8(op, out); |
| 1683 | } else { |
| 1684 | kpanic_fmt("unknown width: %d in logRE", inst->width); |
| 1685 | } |
| 1686 | } |
| 1687 | |
| 1688 | static void logER(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1689 | out.append(inst->name); |