1 /*
2    20020225-1.c from the execute part of the gcc torture suite.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
11 /* This testcase failed at -O2 on powerpc64 due to andsi3 writing
12    nonzero bits to the high 32 bits of a 64 bit register.  */
13 
foo(unsigned long base,unsigned int val)14 unsigned long foo (unsigned long base, unsigned int val)
15 {
16   return base + (val & 0x80000001);
17 }
18 
testTortureExecute(void)19 void testTortureExecute (void)
20 {
21   if (foo (0L, 0x0ffffff0) != 0L)
22     ASSERT (0);
23   return;
24 }
25 
26