| ... | @@ -197,7 +197,10 @@ fn mirPushPop(emit: *Emit, tag: Mir.Inst.Tag, inst: Mir.Inst.Index) InnerError!v | ... | @@ -197,7 +197,10 @@ fn mirPushPop(emit: *Emit, tag: Mir.Inst.Tag, inst: Mir.Inst.Index) InnerError!v |
| 197 | .pop => 0x58, | 197 | .pop => 0x58, |
| 198 | else => unreachable, | 198 | else => unreachable, |
| 199 | }; | 199 | }; |
| 200 | const encoder = try Encoder.init(emit.code, 1); | 200 | const encoder = try Encoder.init(emit.code, 2); |
| | 201 | encoder.rex(.{ |
| | 202 | .b = ops.reg1.isExtended(), |
| | 203 | }); |
| 201 | encoder.opcode_withReg(opc, ops.reg1.lowId()); | 204 | encoder.opcode_withReg(opc, ops.reg1.lowId()); |
| 202 | }, | 205 | }, |
| 203 | 0b01 => { | 206 | 0b01 => { |