1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* dfp_hw represents power 6 */
3 /* { dg-require-effective-target dfp_hw } */
4 /* { dg-skip-if "" { powerpc*-*-aix* } } */
5 /* { dg-options "-mdejagnu-cpu=power5" } */
6 
7 /* Though the command line specifies power5 target, this function is
8    to support power6.  */
9 __attribute__((target("cpu=power6")))
power6(double a,double b)10 double power6 (double a, double b)
11 {
12   return __builtin_copysign (a, b);
13 }
14 /* { dg-final { scan-assembler-times "fcpsgn" 1 } } */
15