This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] gcc.dg/asm-b.c
- From: Bill Wendling <wendling at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Dec 2006 14:30:45 -0800
- Subject: [PATCH] gcc.dg/asm-b.c
Hi all,
This patch checks for PPC-64 as well as PPC.
Okay to submit?
-bw
2006-12-15 Bill Wendling <wendling@apple.com>
* gcc.dg/asm-b.c: Check for __ppc64__.
Index: gcc.dg/asm-b.c
===================================================================
--- gcc.dg/asm-b.c (revision 119946)
+++ gcc.dg/asm-b.c (working copy)
@@ -21,7 +21,7 @@
foo (&x);
const unsigned int y = x;
z = &x;
-#if defined (__powerpc__) || defined (__PPC__) || defined (__ppc__)
|| defined (_POWER)
+#if defined (__powerpc__) || defined (__PPC__) || defined (__ppc__)
|| defined (_POWER) || defined (__ppc64__)
__asm __volatile ("sthbrx %1,0,%2" : "=m" (*z) : "r" (y), "r" (z));
#elif defined __i386__ || defined __x86_64__
__asm __volatile ("movb %b1,1(%2); movb %h1,(%2)" : "=m" (*z) :
"r" (y), "r"