summaryrefslogtreecommitdiff
path: root/tests/test-i386.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-07-26 18:00:58 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-07-26 18:00:58 +0000
commitb2b5fb228f273d2c72aefce3be1f9e11e23c6c24 (patch)
tree3dad73f5724ee7075690b356f09d0cc3f9427137 /tests/test-i386.c
parent8f186479e26e8207520c062248642153826d5cde (diff)
downloadqemu-b2b5fb228f273d2c72aefce3be1f9e11e23c6c24.zip
popw (%esp) test)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@334 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests/test-i386.c')
-rw-r--r--tests/test-i386.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-i386.c b/tests/test-i386.c
index 2411869569..a7ee032c05 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];