use crate::*;
const ALIGNED_ADDR: u64 = 0x3000;
#[test]
fn test_vcvtss2si_eax_xmm0() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_ebx_xmm1() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0xd9, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_ecx_xmm2() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0xca, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_edx_xmm3() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_esi_xmm4() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0xf4, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_edi_xmm5() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0xfd, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_ebp_xmm6() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0xee, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_esp_xmm7() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0xe7, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r8d_xmm8() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r9d_xmm9() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0xc9, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r10d_xmm10() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0xd2, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r11d_xmm11() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0xdb, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r12d_xmm12() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0xe4, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r13d_xmm13() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0xed, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r14d_xmm14() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0xf6, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r15d_xmm15() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0xff, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_eax_xmm8() {
let mut emu = emu64();
let code = [
0xc4, 0xc1, 0x7a, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r8d_xmm0() {
let mut emu = emu64();
let code = [
0xc4, 0xc1, 0x7a, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_eax_mem() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0x05, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 4] = [
0x00, 0x00, 0x80, 0x3f, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_ebx_mem_negative() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0x1d, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 4] = [
0x00, 0x00, 0x80, 0xbf, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_ecx_mem_round_nearest() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0x0d, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 4] = [
0x00, 0x00, 0x00, 0x40, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_edx_mem_large() {
let mut emu = emu64();
let code = [
0xc5, 0xfa, 0x2d, 0x15, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 4] = [
0x00, 0x00, 0x7a, 0x44, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r8d_mem() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7a, 0x2d, 0x05, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 4] = [
0x00, 0x00, 0xc8, 0x42, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_rax_xmm0_w1() {
let mut emu = emu64();
let code = [
0xc4, 0xe1, 0xfa, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_rbx_xmm1_w1() {
let mut emu = emu64();
let code = [
0xc4, 0xe1, 0xfa, 0x2d, 0xd9, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r8_xmm8_w1() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0xfa, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtss2si_r15_xmm15_w1() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0xfa, 0x2d, 0xff, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_eax_xmm0() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_ebx_xmm1() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0xd9, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_ecx_xmm2() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0xca, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_edx_xmm3() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_esi_xmm4() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0xf4, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_edi_xmm5() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0xfd, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_ebp_xmm6() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0xee, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_esp_xmm7() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0xe7, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r8d_xmm8() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r9d_xmm9() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0xc9, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r10d_xmm10() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0xd2, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r11d_xmm11() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0xdb, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r12d_xmm12() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0xe4, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r13d_xmm13() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0xed, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r14d_xmm14() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0xf6, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r15d_xmm15() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0xff, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_eax_xmm8() {
let mut emu = emu64();
let code = [
0xc4, 0xc1, 0x7b, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r8d_xmm0() {
let mut emu = emu64();
let code = [
0xc4, 0xc1, 0x7b, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_eax_mem() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0x05, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 8] = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x3f, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_ebx_mem_negative() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0x1d, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 8] = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xbf, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_ecx_mem_round_nearest() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0x0d, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 8] = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_edx_mem_large() {
let mut emu = emu64();
let code = [
0xc5, 0xfb, 0x2d, 0x15, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 8] = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x8f, 0x40, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r8d_mem() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0x7b, 0x2d, 0x05, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 8] = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x40, ];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_rax_xmm0_w1() {
let mut emu = emu64();
let code = [
0xc4, 0xe1, 0xfb, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_rbx_xmm1_w1() {
let mut emu = emu64();
let code = [
0xc4, 0xe1, 0xfb, 0x2d, 0xd9, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r8_xmm8_w1() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0xfb, 0x2d, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_r15_xmm15_w1() {
let mut emu = emu64();
let code = [
0xc4, 0x41, 0xfb, 0x2d, 0xff, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vcvtsd2si_rcx_xmm2_w1() {
let mut emu = emu64();
let code = [
0xc4, 0xe1, 0xfb, 0x2d, 0xca, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}