| 1646 | } |
| 1647 | |
| 1648 | static void logRR(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1649 | out.append(inst->name); |
| 1650 | out.append(" "); |
| 1651 | if (inst->width==32) { |
| 1652 | outR32(op->reg, out); |
| 1653 | out.append(","); |
| 1654 | outR32(op->rm, out); |
| 1655 | } else if (inst->width==16) { |
| 1656 | outR16(op->reg, out); |
| 1657 | out.append(","); |
| 1658 | outR16(op->rm, out); |
| 1659 | } else if (inst->width==8) { |
| 1660 | outR8(op->reg, out); |
| 1661 | out.append(","); |
| 1662 | outR8(op->rm, out); |
| 1663 | } else { |
| 1664 | kpanic_fmt("unknown width: %d in logRR", inst->width); |
| 1665 | } |
| 1666 | } |
| 1667 | |
| 1668 | static void logRE(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1669 | out.append(inst->name); |
nothing calls this directly
no test coverage detected