On Dez 16 2016, Kelvin Nilsen <kdnil...@linux.vnet.ibm.com> wrote: > Index: gcc/testsuite/gcc.target/powerpc/pr78056-8.c > =================================================================== > --- gcc/testsuite/gcc.target/powerpc/pr78056-8.c (revision 0) > +++ gcc/testsuite/gcc.target/powerpc/pr78056-8.c (working copy) > @@ -0,0 +1,26 @@ > +/* { dg-do compile { target { powerpc*-*-* } } } */ > +/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { > "-mcpu=power5" } } */ > + > +/* powerpc_popcntb_ok represents support for power 5. */ > +/* { dg-require-effective-target powerpc_popcntb_ok } */ > +/* dfp_hw represents support for power 6. */ > +/* { dg-skip-if "" { dfp_hw } } */ > +/* { dg-skip-if "" { powerpc*-*-aix* } } */ > +/* { dg-options "-mcpu=power5" } */ > + > +/* This test follows the pattern of pr78056-2.c, which has been > + * exercised with binutils 2.25. This test, however, has not > + * been exercised because the author of the test does not have access > + * to a development environment that succesfully bootstraps gcc > + * while at the same lacking assembler support for power 6. */ > + > +/* This test should succeed on both 32- and 64-bit configurations. */ > +/* Though the command line specifies power5 target, this function is > + to support power6. Expect an error message here because this target > + does not support power6. */ > +__attribute__((target("cpu=power6"))) > +/* fabs/fnabs/fsel */ > +double normal1 (double a, double b) > +{ /* { dg-warning "lacks power6 support" } */ > + return __builtin_copysign (a, b); /* { dg-warning "implicit declaration" } > */ > +}
http://gcc.gnu.org/ml/gcc-testresults/2017-02/msg00294.html spawn -ignore SIGHUP /daten/gcc/gcc-20170202/Build/gcc/xgcc -B/daten/gcc/gcc-20170202/Build/gcc/ /daten/gcc/gcc-20170202/gcc/testsuite/gcc.target/powerpc/pr78056-8.c -m32 -fno-diagnostics-show-caret -fdiagnostics-color=never -mcpu=power5 -S -o pr78056-8.s FAIL: gcc.target/powerpc/pr78056-8.c (test for warnings, line 24) FAIL: gcc.target/powerpc/pr78056-8.c (test for warnings, line 25) spawn -ignore SIGHUP /daten/gcc/gcc-20170202/Build/gcc/xgcc -B/daten/gcc/gcc-20170202/Build/gcc/ /daten/gcc/gcc-20170202/gcc/testsuite/gcc.target/powerpc/pr78056-8.c -m64 -fno-diagnostics-show-caret -fdiagnostics-color=never -mcpu=power5 -S -o pr78056-8.s FAIL: gcc.target/powerpc/pr78056-8.c (test for warnings, line 24) FAIL: gcc.target/powerpc/pr78056-8.c (test for warnings, line 25) Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."