re PR target/68772 (Many -gstabs tests FAIL with Xcode 7 as)
authorPeter Bergner <bergner@vnet.ibm.com>
Tue, 22 Dec 2015 19:27:14 +0000 (13:27 -0600)
committerPeter Bergner <bergner@gcc.gnu.org>
Tue, 22 Dec 2015 19:27:14 +0000 (13:27 -0600)
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
gcc/config/rs6000/rs6000.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr68872.c [new file with mode: 0644]

index 0cf2dc4882314914015424673a46201dd3333a00..bbca248c6c5076e09f25cf44fb48fff4afb3e765 100644 (file)
@@ -1,3 +1,12 @@
+2015-12-22  Peter Bergner  <bergner@vnet.ibm.com>
+
+       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  <hongjiu.lu@intel.com>
 
        PR target/68937
index dafe3acf912d41b8dd00868df0044001df3cc802..e8377a293f49381d5cf1085b1009948e3e973ff5 100644 (file)
 %{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} \
index b43cfee63e34cbbf8a87bed301128dc870ed1aed..19fccfd53160b3af3a52ac5cce5d385a285a27e7 100644 (file)
@@ -1,3 +1,8 @@
+2015-12-22  Peter Bergner  <bergner@vnet.ibm.com>
+
+       PR target/68772
+       * gcc.target/powerpc/pr68872.c: New test.
+
 2015-12-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        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 (file)
index 0000000..e76f563
--- /dev/null
@@ -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;
+}