Commit b2b5fb228f273d2c72aefce3be1f9e11e23c6c24
1 parent
8f186479
popw (%esp) test)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@334 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
0 deletions
tests/test-i386.c
@@ -970,6 +970,11 @@ void test_misc(void) | @@ -970,6 +970,11 @@ void test_misc(void) | ||
970 | asm volatile ("pushl $12345432 ; pushl $0x9abcdef ; popl (%%esp) ; popl %0" | 970 | asm volatile ("pushl $12345432 ; pushl $0x9abcdef ; popl (%%esp) ; popl %0" |
971 | : "=g" (res)); | 971 | : "=g" (res)); |
972 | printf("popl esp=%x\n", res); | 972 | printf("popl esp=%x\n", res); |
973 | + | ||
974 | + /* specific popw test */ | ||
975 | + asm volatile ("pushl $12345432 ; pushl $0x9abcdef ; popw (%%esp) ; addl $2, %%esp ; popl %0" | ||
976 | + : "=g" (res)); | ||
977 | + printf("popw esp=%x\n", res); | ||
973 | } | 978 | } |
974 | 979 | ||
975 | uint8_t str_buffer[4096]; | 980 | uint8_t str_buffer[4096]; |