diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-06 09:55:04 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-06 09:55:04 +0000 |
commit | d8ace239306618f101c592632763435f511b715e (patch) | |
tree | 7aebac95d74db6ff3d3a954a5202b871aa551d45 /gcc/longlong.h | |
parent | 1917f1d780af1bbd9b010eb528e6102a49b1350e (diff) | |
download | gcc-d8ace239306618f101c592632763435f511b715e.tar.gz |
PR other/13873
* longlong.h: Merge PPC tests from upstream.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108110 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r-- | gcc/longlong.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h index f713f75b6e5..cdcabed6a40 100644 --- a/gcc/longlong.h +++ b/gcc/longlong.h @@ -639,7 +639,9 @@ UDItype __umulsidi3 (USItype, USItype); || defined (__powerpc__) /* gcc */ \ || defined (__POWERPC__) /* BEOS */ \ || defined (__ppc__) /* Darwin */ \ - || defined (PPC) /* GNU/Linux, SysV */ \ + || (defined (PPC) && ! defined (CPU_FAMILY)) /* gcc 2.7.x GNU&SysV */ \ + || (defined (PPC) && defined (CPU_FAMILY) /* VxWorks */ \ + && CPU_FAMILY == PPC) \ ) && W_TYPE_SIZE == 32 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ do { \ @@ -677,7 +679,10 @@ UDItype __umulsidi3 (USItype, USItype); __asm__ ("{cntlz|cntlzw} %0,%1" : "=r" (count) : "r" (x)) #define COUNT_LEADING_ZEROS_0 32 #if defined (_ARCH_PPC) || defined (__powerpc__) || defined (__POWERPC__) \ - || defined (__ppc__) || defined (PPC) + || defined (__ppc__) \ + || (defined (PPC) && ! defined (CPU_FAMILY)) /* gcc 2.7.x GNU&SysV */ \ + || (defined (PPC) && defined (CPU_FAMILY) /* VxWorks */ \ + && CPU_FAMILY == PPC) #define umul_ppmm(ph, pl, m0, m1) \ do { \ USItype __m0 = (m0), __m1 = (m1); \ |