use crate::*;
const ALIGNED_ADDR: u64 = 0x3000;
#[test]
fn test_pmulhw_xmm0_xmm1() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xc1, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm1_xmm2() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xca, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm2_xmm3() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm3_xmm4() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xdc, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm4_xmm5() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xe5, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm5_xmm6() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xee, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm6_xmm7() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xf7, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm7_xmm0() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xf8, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm8_xmm9() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xc1, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm9_xmm10() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xca, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm10_xmm11() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm11_xmm12() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xdc, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm12_xmm13() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xe5, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm13_xmm14() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xee, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm14_xmm15() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xf7, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm15_xmm0() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0xf8, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm0_mem() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x04, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm1_mem() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x0c, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm7_mem() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x3c, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm15_mem() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0x3c, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_positive_values() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xc1, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_negative_values() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_mixed_signs() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xe5, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_zero_multiplication() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xf7, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_max_values() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xc1, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_min_values() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_all_words_different() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xe5, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_sequential_operations() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xc1, 0x66, 0x0f, 0xe5, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_self_multiply() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xc0, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm1_self() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xc9, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_power_of_two() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xf7, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_alternating_signs() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xc1, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_mem_aligned() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x04, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_small_values() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_large_values() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xe5, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_high_regs() {
let mut emu = emu64();
let code = [
0x66, 0x45, 0x0f, 0xe5, 0xf7, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_mixed_regs_1() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0xc1, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_mixed_regs_2() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0xc1, 0x66, 0x45, 0x0f, 0xe5, 0xd3, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm2_mem() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x14, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm3_mem() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x1c, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm4_mem() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x24, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm5_mem() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x2c, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm6_mem() {
let mut emu = emu64();
let code = [
0x66, 0x0f, 0xe5, 0x34, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm8_mem() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0x04, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm9_mem() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0x0c, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm10_mem() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0x14, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm11_mem() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0x1c, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm12_mem() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0x24, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm13_mem() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0x2c, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_pmulhw_xmm14_mem() {
let mut emu = emu64();
let code = [
0x66, 0x44, 0x0f, 0xe5, 0x34, 0x25, 0x00, 0x30, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}