summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/vselnedf.c
blob: 4b0fa5ebcb9c127b7d8f69821d57a79f86222eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v8a_ok */
/* { dg-require-effective-target arm_v8_vfp_ok } */
/* { dg-options "-O2 -mcpu=cortex-a57" } */
/* { dg-add-options arm_v8_vfp } */

double
foo (double x, double y)
{
  volatile int i = 0;
  return i != 0 ? x : y;
}

/* { dg-final { scan-assembler-times "vseleq.f64\td\[0-9\]+" 1 } } */