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