use crate::*;
const ALIGNED_ADDR: u64 = 0x3000;
#[test]
fn test_vinsertf128_ymm0_ymm1_xmm2_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x75, 0x18, 0xc2, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm0_ymm1_xmm2_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x75, 0x18, 0xc2, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm1_ymm2_xmm3_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x6d, 0x18, 0xcb, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm1_ymm2_xmm3_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x6d, 0x18, 0xcb, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm2_ymm3_xmm4_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x65, 0x18, 0xd4, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm2_ymm3_xmm4_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x65, 0x18, 0xd4, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm3_ymm4_xmm5_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x5d, 0x18, 0xdd, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm3_ymm4_xmm5_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x5d, 0x18, 0xdd, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm4_ymm5_xmm6_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x55, 0x18, 0xe6, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm4_ymm5_xmm6_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x55, 0x18, 0xe6, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm5_ymm6_xmm7_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x4d, 0x18, 0xef, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm5_ymm6_xmm7_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x4d, 0x18, 0xef, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm6_ymm7_xmm0_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x45, 0x18, 0xf8, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm6_ymm7_xmm0_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x45, 0x18, 0xf8, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm7_ymm0_xmm1_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x7d, 0x18, 0xf9, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm7_ymm0_xmm1_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x7d, 0x18, 0xf9, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm8_ymm9_xmm10_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x35, 0x18, 0xc2, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm8_ymm9_xmm10_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x35, 0x18, 0xc2, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm9_ymm10_xmm11_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x2d, 0x18, 0xcb, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm10_ymm11_xmm12_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x25, 0x18, 0xd4, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm11_ymm12_xmm13_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x1d, 0x18, 0xdd, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm12_ymm13_xmm14_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x15, 0x18, 0xe6, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm13_ymm14_xmm15_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x0d, 0x18, 0xef, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm14_ymm15_xmm0_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x05, 0x18, 0xf0, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm15_ymm0_xmm1_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x7d, 0x18, 0xf9, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm15_ymm1_xmm2_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x75, 0x18, 0xfa, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm0_ymm1_mem_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x75, 0x18, 0x05, 0x00, 0x40, 0x00, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 16] = [
0x00, 0x00, 0x80, 0x3f,
0x00, 0x00, 0x00, 0x40,
0x00, 0x00, 0x40, 0x40,
0x00, 0x00, 0x80, 0x40,
];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm0_ymm1_mem_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x75, 0x18, 0x05, 0x00, 0x40, 0x00, 0x00, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 16] = [
0x00, 0x00, 0xa0, 0x40,
0x00, 0x00, 0xc0, 0x40,
0x00, 0x00, 0xe0, 0x40,
0x00, 0x00, 0x00, 0x41,
];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm2_ymm3_mem_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x65, 0x18, 0x15, 0x00, 0x40, 0x00, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 16] = [0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm2_ymm3_mem_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x65, 0x18, 0x15, 0x00, 0x40, 0x00, 0x00, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 16] = [0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm7_ymm6_mem_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x4d, 0x18, 0x3d, 0x00, 0x40, 0x00, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 16] = [0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm7_ymm6_mem_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x4d, 0x18, 0x3d, 0x00, 0x40, 0x00, 0x00, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 16] = [0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm8_ymm9_mem_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x35, 0x18, 0x05, 0x00, 0x40, 0x00, 0x00, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 16] = [0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm14_ymm15_mem_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xc3, 0x05, 0x18, 0x35, 0x00, 0x40, 0x00, 0x00, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
let test_data: [u8; 16] = [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff];
emu.maps.write_bytes_slice(ALIGNED_ADDR, &test_data);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm0_ymm0_xmm0_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x7d, 0x18, 0xc0, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm0_ymm0_xmm0_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x7d, 0x18, 0xc0, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm5_ymm5_xmm5_lane0() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x55, 0x18, 0xed, 0x00, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_ymm5_ymm5_xmm5_lane1() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x55, 0x18, 0xed, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_sequence_both_lanes() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x75, 0x18, 0xc1, 0x00, 0xc4, 0xe3, 0x75, 0x18, 0xc2, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}
#[test]
fn test_vinsertf128_lane_swap() {
let mut emu = emu64();
let code = [
0xc4, 0xe3, 0x7d, 0x18, 0xc0, 0x01, 0xf4, ];
emu.load_code_bytes(&code);
emu.run(None).unwrap();
}