2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / neon-combine-sub-abs-into-vabd.c
blob784714f0e87d8cd1216af948c61cdb87319e02cd
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 } */
6 #include <arm_neon.h>
7 float32x2_t f_sub_abs_to_vabd_32(float32x2_t val1, float32x2_t val2)
9 float32x2_t sres = vsub_f32(val1, val2);
10 float32x2_t res = vabs_f32 (sres);
12 return res;
14 /* { dg-final { scan-assembler "vabd\.f32" } }*/