summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/unordcmp-1.c
blob: 49d4b8e076a03d535ca12d6f21386aeda3d9acaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* { dg-do compile } */
/* { dg-options "-O2 -msse2" } */
/* { dg-final { scan-assembler "cmpunordss" } } */
/* { dg-final { scan-assembler "cmpunordps" } } */
/* { dg-final { scan-assembler "cmpunordsd" } } */
/* { dg-final { scan-assembler "cmpunordpd" } } */
/* { dg-final { scan-assembler-not "cmpordss" } } */
/* { dg-final { scan-assembler-not "cmpordps" } } */
/* { dg-final { scan-assembler-not "cmpordsd" } } */
/* { dg-final { scan-assembler-not "cmpordpd" } } */

#include <emmintrin.h>

__m128
f1 (__m128 x, __m128 y)
{
  return _mm_cmpunord_ss (x, y);
}

__m128
f2 (__m128 x, __m128 y)
{
  return _mm_cmpunord_ps (x, y);
}

__m128d
f3 (__m128d x, __m128d y)
{
  return _mm_cmpunord_sd (x, y);
}

__m128d
f4 (__m128d x, __m128d y)
{
  return _mm_cmpunord_pd (x, y);
}