1 /* { dg-do compile } */
2 /* { dg-require-effective-target power10_ok } */
3 /* { dg-require-effective-target int128 } */
4 /* { dg-options "-mdejagnu-cpu=power10 -O2" } */
7 test_eq (vector
signed __int128 a
, vector
signed __int128 b
)
13 test_ne (vector
signed __int128 a
, vector
signed __int128 b
)
19 test_gt (vector
signed __int128 a
, vector
signed __int128 b
)
25 test_ge (vector
signed __int128 a
, vector
signed __int128 b
)
31 test_lt (vector
signed __int128 a
, vector
signed __int128 b
)
37 test_le (vector
signed __int128 a
, vector
signed __int128 b
)
43 testu_eq (vector
unsigned __int128 a
, vector
unsigned __int128 b
)
49 testu_ne (vector
unsigned __int128 a
, vector
unsigned __int128 b
)
55 testu_gt (vector
unsigned __int128 a
, vector
unsigned __int128 b
)
61 testu_ge (vector
unsigned __int128 a
, vector
unsigned __int128 b
)
67 testu_lt (vector
unsigned __int128 a
, vector
unsigned __int128 b
)
73 testu_le (vector
unsigned __int128 a
, vector
unsigned __int128 b
)
78 /* { dg-final { scan-assembler-times "vcmpequq" 4 } } */
79 /* { dg-final { scan-assembler-times "vcmpgtsq" 4 } } */
80 /* { dg-final { scan-assembler-times "vcmpgtuq" 4 } } */
81 /* { dg-final { scan-assembler-times "xxlnor" 6 } } */