/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
/* { dg-options "-O2 -mcpu=power8 -mno-fold-gimple" } */
/* { dg-prune-output "gimple folding of rs6000 builtins has been disabled." } */

__attribute__ ((altivec(vector__))) long long
sdiv (__attribute__ ((altivec(vector__))) long long a,
      __attribute__ ((altivec(vector__))) long long b)
{
  return __builtin_vsx_div_2di (a, b);
}
__attribute__ ((altivec(vector__))) unsigned long long
udiv (__attribute__ ((altivec(vector__))) unsigned long long a,
      __attribute__ ((altivec(vector__))) unsigned long long b)
{
  return __builtin_vsx_udiv_2di (a, b);
}
__attribute__ ((altivec(vector__))) long long
smul (__attribute__ ((altivec(vector__))) long long a,
      __attribute__ ((altivec(vector__))) long long b)
{
  return __builtin_vsx_mul_2di (a, b);
}
