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