Debian Codegraph @

gcc/testsuite/gcc.target/s390/vector/vec-cmp-emu-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mzarch -march=z13" } */
3 /* { dg-require-effective-target int128 } */
4 /* { dg-final { check-function-bodies "**" "" "" } } */
5
6 typedef __attribute__ ((vector_size (16))) signed __int128 v1ti;
7 typedef __attribute__ ((vector_size (16))) unsigned __int128 uv1ti;
8
9 /*
10 ** eq:
11 ** vceqg (%v[0-9]+),%v[0-9]+,%v[0-9]+
12 ** vpdi (%v[0-9]+),\1,\1,4
13 ** vn %v24,(\1,\2|\2,\1)
14 ** br %r14
15 */
16
17 v1ti
18 eq (v1ti x, v1ti y)
19 {
20 return x == y;
21 }
22
23 /*
24 ** ueq:
25 ** vceqg (%v[0-9]+),%v[0-9]+,%v[0-9]+
26 ** vpdi (%v[0-9]+),\1,\1,4
27 ** vn %v24,(\1,\2|\2,\1)
28 ** br %r14
29 */
30
31 uv1ti
32 ueq (uv1ti x, uv1ti y)
33 {
34 return x == y;
35 }