From fa17b3dba476da7c88114beb13a7149823d7fd3e Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Tue, 22 Dec 2015 13:27:14 -0600 Subject: 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 --- gcc/ChangeLog | 9 +++++++++ gcc/config/rs6000/rs6000.h | 1 + gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/pr68872.c | 14 ++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 gcc/testsuite/gcc.target/powerpc/pr68872.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0cf2dc4..bbca248 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 dafe3ac..e8377a2 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 b43cfee..19fccfd 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 0000000..e76f563 --- /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; +} -- cgit v1.1