1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -msse2" } */
3 /* { dg-final { scan-assembler "cmpordss" } } */
4 /* { dg-final { scan-assembler "cmpordps" } } */
5 /* { dg-final { scan-assembler "cmpordsd" } } */
6 /* { dg-final { scan-assembler "cmpordpd" } } */
7 /* { dg-final { scan-assembler-not "cmpunordss" } } */
8 /* { dg-final { scan-assembler-not "cmpunordps" } } */
9 /* { dg-final { scan-assembler-not "cmpunordsd" } } */
10 /* { dg-final { scan-assembler-not "cmpunordpd" } } */
12 #include <emmintrin.h>
15 f1 (__m128 x
, __m128 y
)
17 return _mm_cmpord_ss (x
, y
);
21 f2 (__m128 x
, __m128 y
)
23 return _mm_cmpord_ps (x
, y
);
27 f3 (__m128d x
, __m128d y
)
29 return _mm_cmpord_sd (x
, y
);
33 f4 (__m128d x
, __m128d y
)
35 return _mm_cmpord_pd (x
, y
);