From patchwork Thu Aug 16 02:02:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5/7] rs6000: Get rid of old-mnemonics From: Segher Boessenkool X-Patchwork-Id: 177887 Message-Id: <665753A9-9F1B-4C04-BBC4-7D63B2606E91@kernel.crashing.org> To: David Edelsohn Cc: gcc-patches@gcc.gnu.org, meissner@gcc.gnu.org Date: Thu, 16 Aug 2012 04:02:50 +0200 > This patch is okay, but the longlong.h patch is incomplete. It no > longer should test for _ARCH_COM or _ARCH_PWR, because those will not > work. Committed the following as pre-approved off-list: 2012-08-15 Segher Boessenkool * longlong.h: (powerpc): Delete _ARCH_PWR and _ARCH_COM handling. */ \ || defined (__powerpc__) /* gcc */ \ || defined (__POWERPC__) /* BEOS */ \ || defined (__ppc__) /* Darwin */ \ @@ -914,14 +912,6 @@ } while (0) #define SMUL_TIME 14 #define UDIV_TIME 120 -#elif defined (_ARCH_PWR) -#define UMUL_TIME 8 -#define smul_ppmm(xh, xl, m0, m1) \ - __asm__ ("mul %0,%2,%3" : "=r" (xh), "=q" (xl) : "r" (m0), "r" (m1)) -#define SMUL_TIME 4 -#define sdiv_qrnnd(q, r, nh, nl, d) \ - __asm__ ("div %0,%2,%4" : "=r" (q), "=q" (r) : "r" (nh), "1" (nl), "r" (d)) -#define UDIV_TIME 100 #endif #endif /* 32-bit POWER architecture variants. */ --- trunk/libgcc/longlong.h 2012/08/16 01:36:47 190433 +++ trunk/libgcc/longlong.h 2012/08/16 01:49:57 190434 @@ -850,8 +850,6 @@ FIXME: What's needed for gcc PowerPC VxWorks? __vxworks__ is not good enough, since that hits ARM and m68k too. */ #if (defined (_ARCH_PPC) /* AIX */ \ - || defined (_ARCH_PWR) /* AIX */ \ - || defined (_ARCH_COM) /* AIX