1  /* { dg-do compile } */
       2  /* { dg-require-effective-target powerpc_altivec_ok } */
       3  /* { dg-options "-maltivec" } */
       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  }