]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/arm/vselgtdf.c
741b9a8ef4393ba54bf74059b273fad717944880
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / arm / vselgtdf.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_arch_v8a_ok */
3 /* { dg-require-effective-target arm_v8_vfp_ok } */
4 /* { dg-options "-O2 -mcpu=cortex-a57" } */
5 /* { dg-add-options arm_v8_vfp } */
6
7 double
8 foo (double x, double y)
9 {
10 volatile int i = 0;
11 return i > 0 ? x : y;
12 }
13
14 /* { dg-final { scan-assembler-times "vselgt.f64\td\[0-9\]+" 1 } } */