PR target/83926
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr83926.c
blob8accb2dfc378a5bf7c25654ebddd45c43b9c3136
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" } */
4 /* { dg-prune-output "gimple folding of rs6000 builtins has been disabled." } */
6 __attribute__ ((altivec(vector__))) long long
7 sdiv (__attribute__ ((altivec(vector__))) long long a,
8 __attribute__ ((altivec(vector__))) long long b)
10 return __builtin_vsx_div_2di (a, b);
12 __attribute__ ((altivec(vector__))) unsigned long long
13 udiv (__attribute__ ((altivec(vector__))) unsigned long long a,
14 __attribute__ ((altivec(vector__))) unsigned long long b)
16 return __builtin_vsx_udiv_2di (a, b);
18 __attribute__ ((altivec(vector__))) long long
19 smul (__attribute__ ((altivec(vector__))) long long a,
20 __attribute__ ((altivec(vector__))) long long b)
22 return __builtin_vsx_mul_2di (a, b);