gcc/testsuite/gcc.target/arm/vselltsf.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target arm_cpu_cortex_a57_ok } */ |
| 3 | /* { dg-require-effective-target arm_v8_vfp_ok } */ |
| 4 | /* { dg-options "-O2" } */ |
| 5 | /* { dg-add-options arm_cpu_cortex_a57 } */ |
| 6 | /* { dg-add-options arm_v8_vfp } */ |
| 7 | |
| 8 | float |
| 9 | foo (float x, float y) |
| 10 | { |
| 11 | volatile int i = 0; |
| 12 | return i < 0 ? x : y; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler-times "vselge.f32\ts\[0-9\]+" 1 } } */ |