This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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"



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]