use instruction_def::*;
use test::run_test;
use Operand::*;
use Reg::*;
use RegScale::*;
use RegType::*;
use {BroadcastMode, Instruction, MaskReg, MergeMode, Mnemonic, OperandSize, Reg, RoundingMode};

#[test]
fn invlpg_1() {
    run_test(
        &Instruction {
            mnemonic: Mnemonic::INVLPG,
            operand1: Some(IndirectScaledIndexed(
                BP,
                DI,
                One,
                Some(OperandSize::Unsized),
                None,
            )),
            operand2: None,
            operand3: None,
            operand4: None,
            lock: false,
            rounding_mode: None,
            merge_mode: None,
            sae: false,
            mask: None,
            broadcast: None,
        },
        &[15, 1, 59],
        OperandSize::Word,
    )
}

#[test]
fn invlpg_2() {
    run_test(
        &Instruction {
            mnemonic: Mnemonic::INVLPG,
            operand1: Some(Indirect(EDI, Some(OperandSize::Unsized), None)),
            operand2: None,
            operand3: None,
            operand4: None,
            lock: false,
            rounding_mode: None,
            merge_mode: None,
            sae: false,
            mask: None,
            broadcast: None,
        },
        &[15, 1, 63],
        OperandSize::Dword,
    )
}

#[test]
fn invlpg_3() {
    run_test(
        &Instruction {
            mnemonic: Mnemonic::INVLPG,
            operand1: Some(Indirect(RAX, Some(OperandSize::Unsized), None)),
            operand2: None,
            operand3: None,
            operand4: None,
            lock: false,
            rounding_mode: None,
            merge_mode: None,
            sae: false,
            mask: None,
            broadcast: None,
        },
        &[15, 1, 56],
        OperandSize::Qword,
    )
}
