| 1786 | } |
| 1787 | |
| 1788 | static void logR(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1789 | out.append(inst->name); |
| 1790 | out.append(" "); |
| 1791 | if (inst->width==32) { |
| 1792 | outR32(op->reg, out); |
| 1793 | } else if (inst->width==16) { |
| 1794 | outR16(op->reg, out); |
| 1795 | } else if (inst->width==8) { |
| 1796 | outR8(op->reg, out); |
| 1797 | } else { |
| 1798 | kpanic_fmt("unknown width: %d in logR", inst->width); |
| 1799 | } |
| 1800 | } |
| 1801 | |
| 1802 | static void logE(const LogInstruction* inst, DecodedOp* op, BString& out) { |
| 1803 | out.append(inst->name); |
nothing calls this directly
no test coverage detected