aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr78056-7.c
blob: 90452588fc8a7a2fe0228f97b6a96f96010b66b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target { powerpc*-*-* } } } */
/* dfp_hw represents power 6 */
/* { dg-require-effective-target dfp_hw } */
/* { dg-skip-if "" { powerpc*-*-aix* } } */
/* { dg-options "-mdejagnu-cpu=power5" } */

/* Though the command line specifies power5 target, this function is
   to support power6.  */
__attribute__((target("cpu=power6")))
double power6 (double a, double b)
{
  return __builtin_copysign (a, b);
}
/* { dg-final { scan-assembler-times "fcpsgn" 1 } } */