diff --git a/tests/test-i386.c b/tests/test-i386.c index 086ff288710c17b3bbeef4ad978c615c3253fe52..b0c2af8554b44c334c7d308b057c1e424c27542a 100644 --- a/tests/test-i386.c +++ b/tests/test-i386.c @@ -1379,6 +1379,11 @@ void test_exceptions(void) /* now execute an invalid instruction */ asm volatile("ud2"); } + printf("lock nop exception:\n"); + if (setjmp(jmp_env) == 0) { + /* now execute an invalid instruction */ + asm volatile("lock nop"); + } printf("INT exception:\n"); if (setjmp(jmp_env) == 0) {