| 1726 | } |
| 1727 | |
| 1728 | static void logRR8(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1729 | out.append(inst->name); |
| 1730 | out.append(" "); |
| 1731 | if (inst->width==32) { |
| 1732 | outR32(op->reg, out); |
| 1733 | out.append(","); |
| 1734 | outR8(op->rm, out); |
| 1735 | } else if (inst->width==16) { |
| 1736 | outR16(op->reg, out); |
| 1737 | out.append(","); |
| 1738 | outR8(op->rm, out); |
| 1739 | } else if (inst->width==8) { |
| 1740 | outR8(op->reg, out); |
| 1741 | out.append(","); |
| 1742 | outR8(op->rm, out); |
| 1743 | } else { |
| 1744 | kpanic_fmt("unknown width: %d in logRR8", inst->width); |
| 1745 | } |
| 1746 | } |
| 1747 | |
| 1748 | static void logRE16(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1749 | out.append(inst->name); |
nothing calls this directly
no test coverage detected