1  /* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
       2  /* { dg-options "-mdejagnu-cpu=power9 -O2" } */
       3  /* { dg-require-effective-target powerpc_p9vector_ok } */
       4  
       5  static unsigned short x[(16384/sizeof(unsigned short))] __attribute__ ((aligned (16)));
       6  static unsigned short y[(16384/sizeof(unsigned short))] __attribute__ ((aligned (16)));
       7  static unsigned short a;
       8  
       9  void obfuscate(void *a, ...);
      10  
      11  static void __attribute__((noinline)) do_one(void)
      12  {
      13   unsigned long i;
      14  
      15   obfuscate(x, y, &a);
      16  
      17   for (i = 0; i < (16384/sizeof(unsigned short)); i++)
      18    y[i] = a * x[i];
      19  
      20   obfuscate(x, y, &a);
      21  }
      22  
      23  int main(void)
      24  {
      25   unsigned long i;
      26  
      27   for (i = 0; i < 1000000; i++)
      28    do_one();
      29  
      30   return 0;
      31  }