Debian Codegraph @

gcc/testsuite/gcc.target/s390/vector/long-double-callee-abi-scan.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=z14 -mzarch -fno-unroll-loops" } */
3 #include <stdarg.h>
4
5 __attribute__ ((noipa, used)) long double
6 long_double_callee (long double x, int n, ...)
7 {
8 long double sum = x;
9 va_list vl;
10 int i;
11
12 va_start (vl, n);
13 for (i = 0; i < n; i++)
14 sum += va_arg (vl, long double);
15 va_end (vl);
16
17 return sum;
18 }
19
20 /* { dg-final { scan-assembler-times {\n\tvl\t} 3 } } */