1  /* Verify that overloaded built-ins for vec_sl produce the right results.  */
       2  /* This test covers the shift left tests with the -fwrapv option. */
       3  
       4  /* { dg-do compile } */
       5  /* { dg-require-effective-target powerpc_p8vector_ok } */
       6  /* { dg-options "-mpower8-vector -O2 -fwrapv" } */
       7  
       8  #include <altivec.h>
       9  
      10  vector signed long long
      11  testsl_signed_longlong (vector signed long long x, vector unsigned long long y)
      12  {
      13    return vec_sl (x, y);
      14  }
      15  
      16  vector unsigned long long
      17  testsl_unsigned_longlong (vector unsigned long long x, vector unsigned long long y)
      18  {
      19    return vec_sl (x, y);
      20  }
      21  
      22  /* { dg-final { scan-assembler-times "vsld" 2 } } */