aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/fcsel_1.c
blob: 2704ee0ede77cbedb19a56ee5161fb314459be13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options " -O2 " } */

float
f_1 (float a, float b, float c, float d)
{
  if (a > 0.0)
    return c;
  else
    return 2.0;
}

double
f_2 (double a, double b, double c, double d)
{
  if (a > b)
    return c;
  else
    return d;
}

/* { dg-final { scan-assembler-times "\tfcsel" 2 } } */