blob: 69e8c6148c2799f47a709bb7d84a1020d44f86d0 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O3 -march=z14 -mzarch -fno-unroll-loops" } */
#include <stdarg.h>
__attribute__ ((noipa, used)) long double
long_double_callee (long double x, int n, ...)
{
long double sum = x;
va_list vl;
int i;
va_start (vl, n);
for (i = 0; i < n; i++)
sum += va_arg (vl, long double);
va_end (vl);
return sum;
}
/* { dg-final { scan-assembler-times {\n\tvl\t} 3 } } */