Debian Codegraph @

gcc/testsuite/gcc.target/s390/vxe3/vdl-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int128 } */
3 /* { dg-final { scan-assembler {\tvdlf\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
4 /* { dg-final { scan-assembler {\tvdlg\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
5 /* { dg-final { scan-assembler {\tvdlq\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
6
7 typedef unsigned int __attribute__ ((vector_size (16))) UV4SI;
8 typedef unsigned long long __attribute__ ((vector_size (16))) UV2DI;
9 typedef unsigned __int128 __attribute__ ((vector_size (16))) UV1TI;
10
11 UV4SI
12 vdlf (UV4SI x, UV4SI y)
13 {
14 return x / y;
15 }
16
17 UV2DI
18 vdlg (UV2DI x, UV2DI y)
19 {
20 return x / y;
21 }
22
23 UV1TI
24 vdlq (UV1TI x, UV1TI y)
25 {
26 return x / y;
27 }