aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/tic6x/fpcmp.c
blob: 25eaff4109dc43164ed33ee372cab2aa5eeedb9e (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
/* { dg-do compile } */
/* { dg-require-effective-target ti_c67x } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-times "cmpeq.p" 4 } } */

double gedf (double x, double y)
{
  return x >= y;
}

double ledf (double x, double y)
{
  return x <= y;
}

float gesf (float x, float y)
{
  return x >= y;
}

float lesf (float x, float y)
{
  return x <= y;
}