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