From: bellard Date: Sat, 26 Jul 2003 18:00:58 +0000 (+0000) Subject: popw (%esp) test) X-Git-Tag: v0.4.4~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2b5fb228f273d2c72aefce3be1f9e11e23c6c24;p=thirdparty%2Fqemu.git popw (%esp) test) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@334 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/tests/test-i386.c b/tests/test-i386.c index 24118695694..a7ee032c05e 100644 --- a/tests/test-i386.c +++ b/tests/test-i386.c @@ -970,6 +970,11 @@ void test_misc(void) asm volatile ("pushl $12345432 ; pushl $0x9abcdef ; popl (%%esp) ; popl %0" : "=g" (res)); printf("popl esp=%x\n", res); + + /* specific popw test */ + asm volatile ("pushl $12345432 ; pushl $0x9abcdef ; popw (%%esp) ; addl $2, %%esp ; popl %0" + : "=g" (res)); + printf("popw esp=%x\n", res); } uint8_t str_buffer[4096];