1 /* PR debug/82718 */
2 /* { dg-do assemble } */
3 /* { dg-options "-O2 -gdwarf-5" } */
4 /* { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } */
5
6 extern int e;
7 extern long foo (int, void *, unsigned long, unsigned long);
8 struct S
9 {
10 int f;
11 unsigned long t, s;
12 };
13
14 static inline long
bv(int x,void * y,unsigned long z,unsigned long w)15 bv (int x, void *y, unsigned long z, unsigned long w)
16 {
17 long a = 0;
18 do
19 {
20 long g;
21 do
22 g = (long int) (foo (x, y + a, z - a, w + a));
23 while (g == -1L && e == 9959);
24 if (g <= 0)
25 return g < 0 ? g : a;
26 a += g;
27 }
28 while ((unsigned long) a < z);
29 return a;
30 }
31
32 const char *
baz(struct S * x)33 baz (struct S *x)
34 {
35 unsigned long h = 8;
36 char *j = 0;
37 unsigned long z = x->f;
38 if (__builtin_expect (!!((unsigned long) bv (x->f, j, z, x->t + h + 10) != z), 0))
39 return 0;
40 x->s = z;
41 return j;
42 }
43