1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power8" } */
4 __attribute__ ((altivec(vector__
))) long long
5 sdiv (__attribute__ ((altivec(vector__
))) long long a
,
6 __attribute__ ((altivec(vector__
))) long long b
)
8 return __builtin_vsx_div_2di (a
, b
);
10 __attribute__ ((altivec(vector__
))) unsigned long long
11 udiv (__attribute__ ((altivec(vector__
))) unsigned long long a
,
12 __attribute__ ((altivec(vector__
))) unsigned long long b
)
14 return __builtin_vsx_udiv_2di (a
, b
);
16 __attribute__ ((altivec(vector__
))) long long
17 smul (__attribute__ ((altivec(vector__
))) long long a
,
18 __attribute__ ((altivec(vector__
))) long long b
)
20 return __builtin_vsx_mul_2di (a
, b
);