summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/vector/vec-abi-attr-4.c
blob: ad9b29a8731ab759d72b6d0a999bf3e875d3def4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Check calling convention in the vector ABI.  */

/* { dg-do compile { target { s390*-*-* } } } */
/* { dg-options "-O3 -mzarch -march=z13" } */

/* { dg-final { scan-assembler "gnu_attribute 8, 2" } } */

typedef int __attribute__((vector_size(16))) v4si;

extern void bar (v4si);

void
foo (int a)
{
  v4si b = (v4si){ a, a, a, a };
  bar (b);
}