Revision 1b99f83e tests/tcg/test-i386.c
b/tests/tcg/test-i386.c | ||
---|---|---|
209 | 209 |
#define TEST_LEA16(STR)\ |
210 | 210 |
{\ |
211 | 211 |
asm(".code16 ; .byte 0x67 ; leal " STR ", %0 ; .code32"\ |
212 |
: "=wq" (res)\
|
|
212 |
: "=r" (res)\
|
|
213 | 213 |
: "a" (eax), "b" (ebx), "c" (ecx), "d" (edx), "S" (esi), "D" (edi));\ |
214 | 214 |
printf("lea %s = %08lx\n", STR, res);\ |
215 | 215 |
} |
... | ... | |
1828 | 1828 |
printf("lock nop exception:\n"); |
1829 | 1829 |
if (setjmp(jmp_env) == 0) { |
1830 | 1830 |
/* now execute an invalid instruction */ |
1831 |
asm volatile(".byte 0xf0, 0x90"); /* lock nop */
|
|
1831 |
asm volatile(".byte 0xf0, 0x90"); |
|
1832 | 1832 |
} |
1833 | 1833 |
|
1834 | 1834 |
printf("INT exception:\n"); |
Also available in: Unified diff