| 1 |
/* { dg-do compile { target arm*-*-* } } */ |
| 2 |
/* { dg-require-effective-target arm_arch_v7a_fp_hard_ok } */ |
| 3 |
/* { dg-options "-g -fcompare-debug -O2" } */ |
| 4 |
/* { dg-add-options arm_arch_v7a_fp_hard } */ |
| 5 |
/* { dg-additional-options "-mtune=cortex-a9" } */ |
| 6 |
|
| 7 |
extern void *f1 (unsigned long, unsigned long); |
| 8 |
extern const struct line_map *f2 (void *, int, unsigned int, const char *, unsigned int); |
| 9 |
extern unsigned int f3 (void *, unsigned int); |
| 10 |
extern void *v1; |
| 11 |
struct B { const char *s; int t; }; |
| 12 |
struct C { unsigned u; unsigned long long v; void *w; }; |
| 13 |
unsigned long long f4 (struct C *); |
| 14 |
const char *f5 (void *, unsigned int, unsigned int *); |
| 15 |
unsigned long long f6 (void *); |
| 16 |
|
| 17 |
static inline unsigned long long |
| 18 |
f7 (struct C *x, unsigned y) |
| 19 |
{ |
| 20 |
unsigned long long a, b; |
| 21 |
int u = x->u; |
| 22 |
a = y == 64 ? -1ULL : (1ULL << y) - 1; |
| 23 |
if (u + y > 64) |
| 24 |
{ |
| 25 |
f6 (x->w); |
| 26 |
x->u = y; |
| 27 |
return b & a; |
| 28 |
} |
| 29 |
b = x->v; |
| 30 |
b >>= u; |
| 31 |
x->u = u + y; |
| 32 |
return b & a; |
| 33 |
} |
| 34 |
|
| 35 |
static const char * |
| 36 |
f8 (const char *x) |
| 37 |
{ |
| 38 |
B **a; |
| 39 |
unsigned long t = __builtin_strlen (x); |
| 40 |
char *b; |
| 41 |
struct B *c; |
| 42 |
b = (char *) f1 (t + 1, 1); |
| 43 |
c = (struct B *) f1 (1, sizeof (struct B)); |
| 44 |
__builtin_memcpy (b, x, t + 1); |
| 45 |
c->t = t; |
| 46 |
struct B *d = *a; |
| 47 |
return d->s; |
| 48 |
} |
| 49 |
|
| 50 |
unsigned int |
| 51 |
f9 (struct C *x, void *y) |
| 52 |
{ |
| 53 |
static const char *a; |
| 54 |
static int b; |
| 55 |
static int c; |
| 56 |
bool d, e, f; |
| 57 |
unsigned t; |
| 58 |
bool prev_file = a != __null; |
| 59 |
if (f7 (x, 1)) |
| 60 |
return ((unsigned int) 0); |
| 61 |
d = f7 (x, 1); |
| 62 |
e = f7 (x, 1); |
| 63 |
f = f7 (x, 1); |
| 64 |
a = f8 (f5 (y, f4 (x), &t)); |
| 65 |
if (e) b = f4 (x); |
| 66 |
if (f) |
| 67 |
if (d) |
| 68 |
if (prev_file) |
| 69 |
f2 (v1, 1, false, __null, 0); |
| 70 |
return f3 (v1, c); |
| 71 |
} |