Signed-off-by: Avi Kivity <avi@xxxxxxxxxx> --- x86/realmode.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/x86/realmode.c b/x86/realmode.c index 29f3461..710a06b 100644 --- a/x86/realmode.c +++ b/x86/realmode.c @@ -1356,6 +1356,15 @@ static void test_movzx_movsx(void) report("movzx", R_BX, outregs.ebx == (unsigned char)inregs.eax); } +static void test_bswap(void) +{ + MK_INSN(bswap, "bswap %ecx"); + + inregs.ecx = 0x12345678; + exec_in_big_real_mode(&insn_bswap); + report("bswap", R_CX, outregs.ecx == 0x78563412); +} + void realmode_start(void) { test_null(); @@ -1394,6 +1403,7 @@ void realmode_start(void) test_sgdt_sidt(); test_lahf(); test_movzx_movsx(); + test_bswap(); exit(0); } -- 1.7.11 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html