add test for "mov[zs]x %ah, ..." instruction
PATCH 1/1 add test for "mov[zs]x %ah, ..." instruction
Signed-off-by Gleb Natapov <[email protected]>
x86/realmode.c +7 -0
@@ -1358,12 +1358,19 @@ static void test_movzx_movsx(void) {MK_INSN (movsx,"movsx %al, %ebx" );MK_INSN (movzx,"movzx %al, %ebx" ); +MK_INSN (movzsah,"movsx %ah, %ebx" ); +MK_INSN (movzxah,"movzx %ah, %ebx" ); inregs.eax =0x1234569c ; + inregs.esp =0xffff ;exec_in_big_real_mode (&insn_movsx);report ("movsx" ,R_BX , outregs.ebx == (signed char )inregs.eax);exec_in_big_real_mode (&insn_movzx);report ("movzx" ,R_BX , outregs.ebx == (unsigned char )inregs.eax); +exec_in_big_real_mode (&insn_movzsah); +report ("movsx ah" ,R_BX , outregs.ebx == (signed char )(inregs.eax>>8 )); +exec_in_big_real_mode (&insn_movzxah); +report ("movzx ah" ,R_BX , outregs.ebx == (unsigned char )(inregs.eax >>8 )); }static void test_bswap (void )
--
Gleb.
Marcelo Tosatti
Appliedx86/realmode.c
Quoted 3 lines · Gleb Natapov
Signed-off-by Gleb Natapov <[email protected]>x86/realmode.c +0
-0
Applied, thanks.