From: Peter Bergner Date: Tue, 22 Dec 2015 19:27:14 +0000 (-0600) Subject: re PR target/68772 (Many -gstabs tests FAIL with Xcode 7 as) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa17b3dba476da7c88114beb13a7149823d7fd3e;p=gcc.git re PR target/68772 (Many -gstabs tests FAIL with Xcode 7 as) gcc/ PR target/68772 * config/rs6000/rs6000.h (ASM_CPU_SPEC): For -mcpu=powerpc64le, pass %(asm_cpu_power8)/-mpwr8. * config/rs6000/aix53.h: Likewise. * config/rs6000/aix61.h: Likewise. * config/rs6000/aix71.h: Likewise. gcc/testsuite/ PR target/68772 * gcc.target/powerpc/pr68872.c: New test. From-SVN: r231905 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0cf2dc48823..bbca248c6c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2015-12-22 Peter Bergner + + PR target/68772 + * config/rs6000/rs6000.h (ASM_CPU_SPEC): For -mcpu=powerpc64le, + pass %(asm_cpu_power8)/-mpwr8. + * config/rs6000/aix53.h: Likewise. + * config/rs6000/aix61.h: Likewise. + * config/rs6000/aix71.h: Likewise. + 2015-12-22 H.J. Lu PR target/68937 diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index dafe3acf912..e8377a293f4 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -128,6 +128,7 @@ %{mcpu=power9: %(asm_cpu_power9)} \ %{mcpu=a2: -ma2} \ %{mcpu=powerpc: -mppc} \ +%{mcpu=powerpc64le: %(asm_cpu_power8)} \ %{mcpu=rs64a: -mppc64} \ %{mcpu=401: -mppc} \ %{mcpu=403: -m403} \ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b43cfee63e3..19fccfd5316 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-12-22 Peter Bergner + + PR target/68772 + * gcc.target/powerpc/pr68872.c: New test. + 2015-12-22 H.J. Lu PR target/68937 diff --git a/gcc/testsuite/gcc.target/powerpc/pr68872.c b/gcc/testsuite/gcc.target/powerpc/pr68872.c new file mode 100644 index 00000000000..e76f5639878 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/pr68872.c @@ -0,0 +1,14 @@ +/* PR target/68872 */ +/* { dg-do assemble { target { powerpc64le-*-* } } } */ +/* { dg-options "-mcpu=powerpc64le" } */ + +/* Verify that -mcpu=powerpc64le passes -mpower8 to the assembler. */ + +long +bar (unsigned char *ptr, unsigned char val) +{ + long ret; + asm volatile ("stbcx. %0,0,%1" :: "r" (val), "r" (ptr)); + asm volatile ("mfcr %0,8" : "=r" (ret) ::); + return ret; +}