gcc/testsuite/gcc.target/powerpc/pr47197.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-maltivec" } */ |
| 3 | /* { dg-require-effective-target powerpc_altivec } */ |
| 4 | |
| 5 | /* Compile-only test to ensure that expressions can be passed to |
| 6 | Altivec builtins without error. */ |
| 7 | |
| 8 | #include <altivec.h> |
| 9 | |
| 10 | void func(unsigned char *buf, unsigned len) |
| 11 | { |
| 12 | vec_dst(buf, (len >= 256 ? 0 : len) | 512, 2); |
| 13 | } |