Debian Codegraph @

gcc/testsuite/gcc.target/s390/vector/vec-abi-attr-6.c

raw
1 /* Check calling convention in the vector ABI. */
2
3 /* { dg-do compile { target { s390*-*-* } } } */
4 /* { dg-options "-O3 -mzarch -march=z13" } */
5
6 /* { dg-final { scan-assembler "gnu_attribute 8, 2" } } */
7
8 #include <stdarg.h>
9
10 typedef int __attribute__((vector_size(16))) v4si;
11
12 int
13 bar (int n, ...)
14 {
15 int ret;
16 v4si a;
17 va_list va;
18
19 va_start (va, n);
20 ret = va_arg (va, v4si)[2];
21 va_end (va);
22
23 return ret;
24 }