1  /* Verify that overloaded built-ins for vec_mul with long long
       2     inputs produce the right results.  */
       3  
       4  /* { dg-do compile } */
       5  /* { dg-require-effective-target powerpc_p8vector_ok } */
       6  /* { dg-options "-maltivec -mvsx -mpower8-vector" } */
       7  /* { dg-additional-options "-maix64" { target powerpc-ibm-aix* } } */
       8  
       9  #include <altivec.h>
      10  
      11  vector signed long long
      12  test3 (vector signed long long x, vector signed long long y)
      13  {
      14    return vec_mul (x, y);
      15  }
      16  
      17  vector unsigned long long
      18  test6 (vector unsigned long long x, vector unsigned long long y)
      19  {
      20    return vec_mul (x, y);
      21  }
      22  
      23  /* Power10 can generate the vmulld instruction even in 32-bit.  Before power10,
      24     we limit the code to lp64, since 32-bit cannot generate the mulld
      25     instruction.  */
      26  /* { dg-final { scan-assembler-times {\mmulld\M}  4 { target { lp64 && { ! has_arch_pwr10 } } } } } */
      27  /* { dg-final { scan-assembler-times {\mvmulld\M} 2 { target { has_arch_pwr10             } } } } */