Debian Codegraph @

gcc/testsuite/gcc.target/s390/vector/vec-abi-2.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 /* This needs to be v24 = v24 * v26 + v28 */
7 /* { dg-final { scan-assembler "vfmadb\t%v24,%v24,%v26,%v28" } } */
8
9 typedef double v2df __attribute__((vector_size(16)));
10
11 v2df
12 madd (v2df a, v2df b, v2df c)
13 {
14 return a * b + c;
15 }