clobber "cc" for flags, not "flags". Thanks Milan for noticing it.

This commit is contained in:
gbeauche 2003-03-17 22:37:55 +00:00
parent 08e9f936eb
commit ce3d90ff5e

View File

@ -2717,7 +2717,7 @@ static bool target_check_bsf(void)
int flags = (g_SF << 7) | (g_OF << 11) | (g_ZF << 6) | g_CF;
int tmp = value;
__asm__ __volatile__ ("push %0; popf; bsf %1,%1; pushf; pop %0"
: "+r" (flags), "+r" (tmp) : : "flags");
: "+r" (flags), "+r" (tmp) : : "cc");
int OF = (flags >> 11) & 1;
int SF = (flags >> 7) & 1;
int ZF = (flags >> 6) & 1;