gcc/testsuite/gcc.target/powerpc/fold-vec-madd-float.c
raw| 1 | /* Verify that overloaded built-ins for vec_madd with float |
| 2 | inputs produce the right results. */ |
| 3 | |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-options "-mvsx -O2" } */ |
| 6 | /* { dg-require-effective-target powerpc_vsx } */ |
| 7 | |
| 8 | #include <altivec.h> |
| 9 | |
| 10 | vector float |
| 11 | testf_l (vector float vf2, vector float vf3, vector float vf4) |
| 12 | { |
| 13 | return vec_madd (vf2, vf3, vf4); |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-assembler-times "xvmaddmsp|xvmaddasp" 1 } } */ |
| 17 |