gcc/testsuite/gcc.target/arm/neon-combine-sub-abs-into-vabd.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target arm_neon_ok } */ |
| 3 | /* { dg-options "-O2 -funsafe-math-optimizations" } */ |
| 4 | /* { dg-add-options arm_neon } */ |
| 5 | |
| 6 | #include <arm_neon.h> |
| 7 | float32x2_t f_sub_abs_to_vabd_32(float32x2_t val1, float32x2_t val2) |
| 8 | { |
| 9 | float32x2_t sres = vsub_f32(val1, val2); |
| 10 | float32x2_t res = vabs_f32 (sres); |
| 11 | |
| 12 | return res; |
| 13 | } |
| 14 | /* { dg-final { scan-assembler "vabd\.f32" } }*/ |