aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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 2411869..a7ee032 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];