use crate::*;
const DEST_ADDR: u64 = 0x4000;
#[test]
fn test_movnti_m32_eax() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x04, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m32_ebx() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x1c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m32_ecx() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x0c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m32_edx() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x14, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m32_esi() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x34, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m32_edi() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x3c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m32_esp() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x24, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m32_ebp() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x2c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_rax() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x04, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_rbx() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x1c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_rcx() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x0c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_rdx() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x14, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_rsi() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x34, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_rdi() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x3c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_r8() {
let mut emu = emu64();
let code = [
0x4c, 0x0f, 0xc3, 0x04, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_r9() {
let mut emu = emu64();
let code = [
0x4c, 0x0f, 0xc3, 0x0c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_r10() {
let mut emu = emu64();
let code = [
0x4c, 0x0f, 0xc3, 0x14, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_r11() {
let mut emu = emu64();
let code = [
0x4c, 0x0f, 0xc3, 0x1c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_r12() {
let mut emu = emu64();
let code = [
0x4c, 0x0f, 0xc3, 0x24, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_r13() {
let mut emu = emu64();
let code = [
0x4c, 0x0f, 0xc3, 0x2c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_r14() {
let mut emu = emu64();
let code = [
0x4c, 0x0f, 0xc3, 0x34, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_m64_r15() {
let mut emu = emu64();
let code = [
0x4c, 0x0f, 0xc3, 0x3c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_32bit_zero() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x04, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_32bit_max() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x1c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_64bit_zero() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x04, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_64bit_max() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x1c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_non_temporal_hint() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x0c, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_write_combining() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x14, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_sequential_32bit() {
let mut emu = emu64();
let code = [
0x0f, 0xc3, 0x34, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_movnti_sequential_64bit() {
let mut emu = emu64();
let code = [
0x48, 0x0f, 0xc3, 0x34, 0x25, 0x00, 0x40, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}