1  /* Verify that overloaded built-ins for vec_mul with int
       2     inputs produce the right results.  */
       3  
       4  /* { dg-do compile } */
       5  /* { dg-require-effective-target powerpc_p8vector_ok } */
       6  /* { dg-options "-mpower8-vector" } */
       7  
       8  #include <altivec.h>
       9  
      10  vector signed int
      11  test3 (vector signed int x, vector signed int y)
      12  {
      13    return vec_mul (x, y);
      14  }
      15  
      16  vector unsigned int
      17  test6 (vector unsigned int x, vector unsigned int y)
      18  {
      19    return vec_mul (x, y);
      20  }
      21  
      22  /* { dg-final { scan-assembler-times "\[ \t\]vmuluwm" 2 } } */
      23