aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/vselltdf.c
blob: 80b3787ffa4932e9277923a39604f4b65b588801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-require-effective-target arm_cpu_cortex_a57_ok } */
/* { dg-require-effective-target arm_v8_vfp_ok } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_cpu_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 "vselge.f64\td\[0-9\]+" 1 } } */