Debian Codegraph @

gcc/testsuite/gcc.target/s390/vector/vec-abi-attr-4.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 typedef int __attribute__((vector_size(16))) v4si;
9
10 extern void bar (v4si);
11
12 void
13 foo (int a)
14 {
15 v4si b = (v4si){ a, a, a, a };
16 bar (b);
17 }