blob: 3f31f5e2df485f461b61096ed9c1625e97322cc9 [file] [log] [blame]
/* PR optimization/8746 */
/* { dg-do run } */
/* { dg-require-effective-target ia32 } */
/* { dg-options "-O1 -mtune=i586" } */
extern void abort (void);
unsigned char r0;
int foo(int x)
{
unsigned char r = x&0xf0;
if (!(r&0x80))
{
r0 = r;
return 0;
}
else
return 1;
}
int main(void)
{
if (foo(0x80) != 1)
abort();
return 0;
}