blob: 31f2d2b5b0080ef732879d61dcd1b91e6ed6702d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-options "-mdejagnu-cpu=power8 -mvsx -O2" } */
/* { dg-require-effective-target powerpc_vsx } */
#include <altivec.h>
vector unsigned long long
test_sra (vector unsigned long long x, vector unsigned long long y)
{
return vec_sra (x, y);
}
vector unsigned long long
test_vsrad (vector unsigned long long x, vector unsigned long long y)
{
return vec_vsrad (x, y);
}
/* { dg-final { scan-assembler-times {\mvsrad\M} 2 } } */
|