Debian Codegraph @

gcc/testsuite/gcc.target/s390/vector/long-double-wfaxb.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=z14 -mzarch --save-temps" } */
3 /* { dg-do run { target { s390_z14_hw } } } */
4 #include <assert.h>
5
6 __attribute__ ((noipa)) static long double
7 wfaxb (long double x, long double y, long double z)
8 {
9 return x + y + z;
10 }
11
12 /* { dg-final { scan-assembler-times {\n\twfaxb\t} 2 } } */
13
14 int
15 main (void)
16 {
17 assert (wfaxb (1.11L, 2.22L, 3.33L) == 6.66L);
18 }