| ... | @@ -478,7 +478,7 @@ const Function = struct { | ... | @@ -478,7 +478,7 @@ const Function = struct { |
| 478 | return self.fail(src, "TODO decide whether to implement non-64-bit loads", .{}); | 478 | return self.fail(src, "TODO decide whether to implement non-64-bit loads", .{}); |
| 479 | } | 479 | } |
| 480 | const src_reg = @intToEnum(Reg(arch), @intCast(u8, r)); | 480 | const src_reg = @intToEnum(Reg(arch), @intCast(u8, r)); |
| 481 | // This is a varient of 8B /r. Since we're using 64-bit moves, we require a REX. | 481 | // This is a variant of 8B /r. Since we're using 64-bit moves, we require a REX. |
| 482 | // This is thus three bytes: REX 0x8B R/M. | 482 | // This is thus three bytes: REX 0x8B R/M. |
| 483 | // If the destination is extended, the R field must be 1. | 483 | // If the destination is extended, the R field must be 1. |
| 484 | // If the *source* is extended, the B field must be 1. | 484 | // If the *source* is extended, the B field must be 1. |