Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target int128 } */
3 /* { dg-final { scan-assembler {\tvrf\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
4 /* { dg-final { scan-assembler {\tvrg\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
5 /* { dg-final { scan-assembler {\tvrq\t%v[0-9]+,%v[0-9]+,%v[0-9]+,0} } } */
6
7 typedef int __attribute__ ((vector_size (16))) V4SI;
8 typedef long long __attribute__ ((vector_size (16))) V2DI;
9 typedef __int128 __attribute__ ((vector_size (16))) V1TI;
10
11 V4SI
12 vrf (V4SI x, V4SI y)
13 {
14 return x % y;
15 }
16
17 V2DI
18 vrg (V2DI x, V2DI y)
19 {
20 return x % y;
21 }
22
23 V1TI
24 vrq (V1TI x, V1TI y)
25 {
26 return x % y;
27 }