aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/vselvsdf.c
blob: be225b124a1ae566f0a911c75b33f4a2e6fc050d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { 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)
{
  return __builtin_isunordered (x, y) ? x : y;
}

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