formal-patch
This commit is contained in:
parent
b574d39a39
commit
002d26b6b7
1 changed files with 2 additions and 1 deletions
|
|
@ -896,7 +896,8 @@ const Jcc = enum(u8) {
|
|||
};
|
||||
|
||||
fn emitRex(buf: *codebuf.CodeBuffer, w: bool, r: u1, x: u1, b: u1) void {
|
||||
const rex: u8 = 0x40 | (if (w) 0x08 else 0) | (@as(u8, r) << 2) | (@as(u8, x) << 1) | @as(u8, b);
|
||||
const rex_w: u8 = if (w) @as(u8, 0x08) else @as(u8, 0x00);
|
||||
const rex: u8 = @as(u8, 0x40) | rex_w | (@as(u8, r) << 2) | (@as(u8, x) << 1) | @as(u8, b);
|
||||
if (rex != 0x40) buf.emit1(rex);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue