summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/ordcmp-1.c
blob: a136182aca986d6edc2a8628ee345bc94cbc9a6e (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 "cmpordss" } } */
/* { dg-final { scan-assembler "cmpordps" } } */
/* { dg-final { scan-assembler "cmpordsd" } } */
/* { dg-final { scan-assembler "cmpordpd" } } */
/* { dg-final { scan-assembler-not "cmpunordss" } } */
/* { dg-final { scan-assembler-not "cmpunordps" } } */
/* { dg-final { scan-assembler-not "cmpunordsd" } } */
/* { dg-final { scan-assembler-not "cmpunordpd" } } */

#include <emmintrin.h>

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

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

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

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