2 /* { dg-require-effective-target sse4 } */
3 /* { dg-options "-O2 -msse4.2" } */
6 #define CHECK_H "sse4_2-check.h"
10 #define TEST sse4_2_test
15 #include "sse4_2-pcmpstr.h"
20 (_SIDD_SBYTE_OPS | _SIDD_CMP_RANGES | _SIDD_MASKED_POSITIVE_POLARITY)
22 (_SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_EACH | _SIDD_NEGATIVE_POLARITY \
25 (_SIDD_UWORD_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_MASKED_NEGATIVE_POLARITY)
27 (_SIDD_SWORD_OPS | _SIDD_CMP_EQUAL_ORDERED \
28 | _SIDD_MASKED_NEGATIVE_POLARITY | _SIDD_UNIT_MASK)
42 for (i
= 0; i
< NUM
*16; i
++)
48 for (i
= 0; i
< NUM
; i
++)
53 res
= _mm_cmpistrm (src1
.x
[i
], src2
.x
[i
], IMM_VAL0
);
54 correct
= cmp_im (&src1
.x
[i
], &src2
.x
[i
], IMM_VAL0
, NULL
);
58 res
= _mm_cmpistrm (src1
.x
[i
], src2
.x
[i
], IMM_VAL1
);
59 correct
= cmp_im (&src1
.x
[i
], &src2
.x
[i
], IMM_VAL1
, NULL
);
63 res
= _mm_cmpistrm (src1
.x
[i
], src2
.x
[i
], IMM_VAL2
);
64 correct
= cmp_im (&src1
.x
[i
], &src2
.x
[i
], IMM_VAL2
, NULL
);
68 res
= _mm_cmpistrm (src1
.x
[i
], src2
.x
[i
], IMM_VAL3
);
69 correct
= cmp_im (&src1
.x
[i
], &src2
.x
[i
], IMM_VAL3
, NULL
);
73 if (memcmp (&correct
, &res
, sizeof (res
)))