| 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-options "-mvsx -O2" } */ |
| 6 |
/* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */ |
| 7 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 8 |
|
| 9 |
#include <altivec.h> |
| 10 |
|
| 11 |
vector signed long long |
| 12 |
testsl_signed_longlong (vector signed long long x, vector unsigned long long y) |
| 13 |
{ |
| 14 |
return vec_sl (x, y); |
| 15 |
} |
| 16 |
|
| 17 |
vector unsigned long long |
| 18 |
testsl_unsigned_longlong (vector unsigned long long x, vector unsigned long long y) |
| 19 |
{ |
| 20 |
return vec_sl (x, y); |
| 21 |
} |
| 22 |
|
| 23 |
/* { dg-final { scan-assembler-times "vsld" 2 } } */ |