1 /* Test for PR 69625; make sure that a leaf vararg function does not overwrite
4 /* { dg-options "-O2" } */
6 extern void abort (void);
8 __attribute__ ((noinline
))
15 __asm__
__volatile__ ("lhi %%r6,1" : : : "r6");
16 __builtin_va_start(vl
, x
);
17 for (i
= 2; i
<= 6; i
++)
18 x
+= __builtin_va_arg(vl
, int);
19 __builtin_va_end (vl
);
24 __attribute__ ((noinline
))
26 bar (int r2
, int r3
, int r4
, int r5
, int r6
)
28 foo (r2
, r3
, r4
, r5
, r6
);