1  /* cross section of shift tests specific for shift-left.
       2   * This is a counterpart to the fold-vec-shift-left-frwapv test.  */
       3  
       4  /* { dg-do compile } */
       5  /* { dg-require-effective-target powerpc_p8vector_ok } */
       6  /* { dg-options "-mpower8-vector -O2" } */
       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 } } */