1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
3 /* { dg-options "-O2 -mcpu=power8 -mno-fold-gimple" } */
5 __attribute__ ((altivec(vector__
))) long long
6 sdiv (__attribute__ ((altivec(vector__
))) long long a
,
7 __attribute__ ((altivec(vector__
))) long long b
)
9 return __builtin_vsx_div_2di (a
, b
);
11 __attribute__ ((altivec(vector__
))) unsigned long long
12 udiv (__attribute__ ((altivec(vector__
))) unsigned long long a
,
13 __attribute__ ((altivec(vector__
))) unsigned long long b
)
15 return __builtin_vsx_udiv_2di (a
, b
);
17 __attribute__ ((altivec(vector__
))) long long
18 smul (__attribute__ ((altivec(vector__
))) long long a
,
19 __attribute__ ((altivec(vector__
))) long long b
)
21 return __builtin_vsx_mul_2di (a
, b
);