16 lines
568 B
C
16 lines
568 B
C
/* { dg-do compile { target { powerpc*-*-* } } } */
|
|
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power5" } } */
|
|
/* dfp_hw represents power 6 */
|
|
/* { dg-require-effective-target dfp_hw } */
|
|
/* { dg-skip-if "" { powerpc*-*-aix* } } */
|
|
/* { dg-options "-mcpu=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 } } */
|