mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
x86_64/Emit: don't misisel push/pop for extended regs
This commit is contained in:
parent
e5bc092408
commit
f3ba72cf5a
@ -197,7 +197,10 @@ fn mirPushPop(emit: *Emit, tag: Mir.Inst.Tag, inst: Mir.Inst.Index) InnerError!v
|
|||||||
.pop => 0x58,
|
.pop => 0x58,
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
};
|
};
|
||||||
const encoder = try Encoder.init(emit.code, 1);
|
const encoder = try Encoder.init(emit.code, 2);
|
||||||
|
encoder.rex(.{
|
||||||
|
.b = ops.reg1.isExtended(),
|
||||||
|
});
|
||||||
encoder.opcode_withReg(opc, ops.reg1.lowId());
|
encoder.opcode_withReg(opc, ops.reg1.lowId());
|
||||||
},
|
},
|
||||||
0b01 => {
|
0b01 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user