2002-05-10 David S. Miller <davem@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20020225-1.c
blob61724a1f006eb16ede1a3e78d96a84b03164ae41
1 /* This testcase failed at -O2 on powerpc64 due to andsi3 writing
2 non-zero bits to the high 32 bits of a 64 bit register. */
4 extern void abort (void);
5 extern void exit (int);
7 unsigned long foo (unsigned long base, unsigned int val)
9 return base + (val & 0x80000001);
12 int main (void)
14 if (foo (0L, 0x0ffffff0) != 0L)
15 abort ();
16 exit (0);