Debian Codegraph @

gcc/testsuite/gcc.target/s390/vxe3/vd-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int128 } */
3 /* { dg-final { scan-assembler {\tvdf\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
4 /* { dg-final { scan-assembler {\tvdg\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
5 /* { dg-final { scan-assembler {\tvdq\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
6
7 typedef int int32;
8 typedef long long int64;
9 typedef __int128 int128;
10
11 #define vd(T) \
12 void \
13 vd_##T (T *res, T *x, T *y) \
14 { \
15 for (int i = 0; i < 128; ++i) \
16 res[i] = x[i] / *y; \
17 }
18
19 vd(int32)
20 vd(int64)
21 vd(int128)