Debian Codegraph @

gcc/testsuite/gcc.target/i386/sse2-v1ti-logic.c

raw
1 /* { dg-do compile { target int128 } } */
2 /* { dg-options "-O2 -msse2" } */
3
4 typedef unsigned __int128 v1ti __attribute__ ((__vector_size__ (16)));
5
6 v1ti and(v1ti x, v1ti y)
7 {
8 return x & y;
9 }
10
11 v1ti ior(v1ti x, v1ti y)
12 {
13 return x | y;
14 }
15
16 v1ti xor(v1ti x, v1ti y)
17 {
18 return x ^ y;
19 }
20
21 v1ti not(v1ti x)
22 {
23 return ~x;
24 }
25
26 /* { dg-final { scan-assembler "pand" } } */
27 /* { dg-final { scan-assembler "por" } } */
28 /* { dg-final { scan-assembler-times "pxor" 2 } } */