gcc/testsuite/g++.target/powerpc/altivec-12.C
raw| 1 | /* Test vec_dst* functions with float pointer as first argument. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-maltivec" } */ |
| 4 | /* { dg-require-effective-target powerpc_altivec } */ |
| 5 | |
| 6 | #include <altivec.h> |
| 7 | |
| 8 | extern int i; |
| 9 | extern float *fp; |
| 10 | extern vector float vf; |
| 11 | |
| 12 | void |
| 13 | foo () |
| 14 | { |
| 15 | vec_dst (fp, i, 1); |
| 16 | vec_dstst (fp, i, 1); |
| 17 | vec_dststt (fp, i, 1); |
| 18 | vec_dstt (fp, i, 1); |
| 19 | } |