2 /* { dg-options "-O2 -mvsx" } */
3 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
4 /* { dg-require-effective-target p8vector_hw } */
7 #define CHECK_H "sse4_1-check.h"
11 #define TEST sse4_1_test
16 #include <smmintrin.h>
31 for (i
= 0; i
< NUM
; i
++)
33 src1
.ll
[i
] = i
* i
* sign
;
34 src2
.ll
[i
] = (i
+ 20) * sign
;
38 for (i
= 0; i
< NUM
; i
+= 2)
39 dst
.x
[i
/ 2] = _mm_cmpeq_epi64(src1
.x
[i
/ 2], src2
.x
[i
/ 2]);
41 for (i
= 0; i
< NUM
; i
++)
43 is_eq
= src1
.ll
[i
] == src2
.ll
[i
] ? 0xffffffffffffffffLL
: 0LL;
44 if (is_eq
!= dst
.ll
[i
])