This commit is contained in:
Folkert 2023-01-27 11:54:16 +01:00
parent c0a7b283f9
commit bfe959af52
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -1660,7 +1660,7 @@ fn shl_reg64_reg64(buf: &mut Vec<'_, u8>, dst: X86_64GeneralReg) {
let rex = add_reg_extension(dst, rex); let rex = add_reg_extension(dst, rex);
let dst_mod = dst as u8 % 8; let dst_mod = dst as u8 % 8;
buf.extend(&[rex, 0xD3, 0xC0 | (4 << 3) | dst_mod]); buf.extend([rex, 0xD3, 0xC0 | (4 << 3) | dst_mod]);
} }
/// `SHR r/m64, CL` -> Unsigned divide r/m64 by 2, CL times. /// `SHR r/m64, CL` -> Unsigned divide r/m64 by 2, CL times.
@ -1670,7 +1670,7 @@ fn shr_reg64_reg64(buf: &mut Vec<'_, u8>, dst: X86_64GeneralReg) {
let rex = add_reg_extension(dst, rex); let rex = add_reg_extension(dst, rex);
let dst_mod = dst as u8 % 8; let dst_mod = dst as u8 % 8;
buf.extend(&[rex, 0xD3, 0xC0 | (5 << 3) | dst_mod]); buf.extend([rex, 0xD3, 0xC0 | (5 << 3) | dst_mod]);
} }
/// `SAR r/m64, CL` -> Signed divide r/m64 by 2, CL times. /// `SAR r/m64, CL` -> Signed divide r/m64 by 2, CL times.
@ -1680,7 +1680,7 @@ fn sar_reg64_reg64(buf: &mut Vec<'_, u8>, dst: X86_64GeneralReg) {
let rex = add_reg_extension(dst, rex); let rex = add_reg_extension(dst, rex);
let dst_mod = dst as u8 % 8; let dst_mod = dst as u8 % 8;
buf.extend(&[rex, 0xD3, 0xC0 | (7 << 3) | dst_mod]); buf.extend([rex, 0xD3, 0xC0 | (7 << 3) | dst_mod]);
} }
/// `ADDSD xmm1,xmm2/m64` -> Add the low double-precision floating-point value from xmm2/mem to xmm1 and store the result in xmm1. /// `ADDSD xmm1,xmm2/m64` -> Add the low double-precision floating-point value from xmm2/mem to xmm1 and store the result in xmm1.