Commit c6061817 authored by Avi Kivity's avatar Avi Kivity
Browse files

Test RET IMM instruction


Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent c0b7268d
......@@ -627,6 +627,7 @@ void test_call(void)
"ret\n\t"
"2:\t");
MK_INSN(call_far1, "lcallw *(%ebx)\n\t");
MK_INSN(ret_imm, "sub $10, %sp; jmp 2f; 1: retw $10; 2: callw 1b");
exec_in_big_real_mode(&inregs, &outregs,
insn_call1,
......@@ -658,6 +659,13 @@ void test_call(void)
print_serial("Call far Test 1: FAIL\n");
else
print_serial("Call far Test 1: PASS\n");
exec_in_big_real_mode(&inregs, &outregs, insn_ret_imm,
insn_ret_imm_end - insn_ret_imm);
if (!regs_equal(&inregs, &outregs, 0))
print_serial("ret imm Test 1: FAIL\n");
else
print_serial("ret imm Test 1: PASS\n");
}
void test_jcc_short(void)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment