diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-02-10 13:20:54 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-02-10 13:20:54 +0000 |
commit | 19190d2751e160d70146a18512a21a4efddf13b2 (patch) | |
tree | 96de50bf7ee12bf5eebae56ddeaa93b1aa94f3b0 /gcc | |
parent | ecf92f822777f05e82a0cb8c93232abf24df8318 (diff) | |
download | gcc-19190d2751e160d70146a18512a21a4efddf13b2.zip gcc-19190d2751e160d70146a18512a21a4efddf13b2.tar.gz gcc-19190d2751e160d70146a18512a21a4efddf13b2.tar.bz2 |
clzsi2.c: Remove.
* config/h8300/clzsi2.c: Remove.
* config/h8300/ctzsi2.c: Likewise.
* config/h8300/paritysi2.c: Likewise.
* config/h8300/popcountsi2.c: Likewise.
* config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
ctzsi2, paritysi2, and popcountsi2.
From-SVN: r62637
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/h8300/clzsi2.c | 43 | ||||
-rw-r--r-- | gcc/config/h8300/ctzsi2.c | 43 | ||||
-rw-r--r-- | gcc/config/h8300/paritysi2.c | 66 | ||||
-rw-r--r-- | gcc/config/h8300/popcountsi2.c | 40 | ||||
-rw-r--r-- | gcc/config/h8300/t-h8300 | 7 |
6 files changed, 10 insertions, 198 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0a9cae..280e337 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2003-02-10 Kazu Hirata <kazu@cs.umass.edu> + + * config/h8300/clzsi2.c: Remove. + * config/h8300/ctzsi2.c: Likewise. + * config/h8300/paritysi2.c: Likewise. + * config/h8300/popcountsi2.c: Likewise. + * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2, + ctzsi2, paritysi2, and popcountsi2. + 2003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr> Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de> diff --git a/gcc/config/h8300/clzsi2.c b/gcc/config/h8300/clzsi2.c deleted file mode 100644 index 522b398..0000000 --- a/gcc/config/h8300/clzsi2.c +++ /dev/null @@ -1,43 +0,0 @@ -/* More subroutines needed by GCC output code on some machines. */ -/* Compile this one with gcc. */ -/* Copyright (C) 2003 Free Software Foundation, Inc. - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -In addition to the permissions in the GNU General Public License, the -Free Software Foundation gives you unlimited permission to link the -compiled version of this file into combinations with other programs, -and to distribute those combinations without any restriction coming -from the use of this file. (The General Public License restrictions -do apply in other respects; for example, they cover modification of -the file, and distribution when not linked into a combine -executable.) - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - -int -__clzsi2 (unsigned long x) -{ - unsigned char i; - - for (i = 0; i < 32; i++) - { - if (x & (1L << 31)) - break; - x <<= 1; - } - return i; -} diff --git a/gcc/config/h8300/ctzsi2.c b/gcc/config/h8300/ctzsi2.c deleted file mode 100644 index 195f9dc..0000000 --- a/gcc/config/h8300/ctzsi2.c +++ /dev/null @@ -1,43 +0,0 @@ -/* More subroutines needed by GCC output code on some machines. */ -/* Compile this one with gcc. */ -/* Copyright (C) 2003 Free Software Foundation, Inc. - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -In addition to the permissions in the GNU General Public License, the -Free Software Foundation gives you unlimited permission to link the -compiled version of this file into combinations with other programs, -and to distribute those combinations without any restriction coming -from the use of this file. (The General Public License restrictions -do apply in other respects; for example, they cover modification of -the file, and distribution when not linked into a combine -executable.) - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - -int -__ctzsi2 (unsigned long x) -{ - unsigned char i; - - for (i = 0; i < 32; i++) - { - if (x & 1) - break; - x >>= 1; - } - return i; -} diff --git a/gcc/config/h8300/paritysi2.c b/gcc/config/h8300/paritysi2.c deleted file mode 100644 index 0bc52a9..0000000 --- a/gcc/config/h8300/paritysi2.c +++ /dev/null @@ -1,66 +0,0 @@ -/* More subroutines needed by GCC output code on some machines. */ -/* Compile this one with gcc. */ -/* Copyright (C) 2003 Free Software Foundation, Inc. - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -In addition to the permissions in the GNU General Public License, the -Free Software Foundation gives you unlimited permission to link the -compiled version of this file into combinations with other programs, -and to distribute those combinations without any restriction coming -from the use of this file. (The General Public License restrictions -do apply in other respects; for example, they cover modification of -the file, and distribution when not linked into a combine -executable.) - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - -int -__paritysi2 (unsigned long x) -{ -#ifdef __H8300__ - unsigned char a; - asm ("xor.b\t%z1,%w1\n\t" - "xor.b\t%y1,%w1\n\t" - "xor.b\t%x1,%w1\n\t" - "bld\t#0,%w1\n\t" - "bxor\t#1,%w1\n\t" - "bxor\t#2,%w1\n\t" - "bxor\t#3,%w1\n\t" - "bxor\t#4,%w1\n\t" - "bxor\t#5,%w1\n\t" - "bxor\t#6,%w1\n\t" - "bxor\t#7,%w1\n\t" - "xor.b\t%X0,%X0\n\t" - "bst\t#0,%s0" : "=r" (a) : "r" (x)); - return a; -#else - unsigned short a; - asm ("xor.w\t%e1,%f1\n\t" - "xor.b\t%x1,%w1\n\t" - "bld\t#0,%w1\n\t" - "bxor\t#1,%w1\n\t" - "bxor\t#2,%w1\n\t" - "bxor\t#3,%w1\n\t" - "bxor\t#4,%w1\n\t" - "bxor\t#5,%w1\n\t" - "bxor\t#6,%w1\n\t" - "bxor\t#7,%w1\n\t" - "xor.w\t%T0,%T0\n\t" - "bst\t#0,%s0" : "=r" (a) : "r" (x)); - return a; -#endif -} diff --git a/gcc/config/h8300/popcountsi2.c b/gcc/config/h8300/popcountsi2.c deleted file mode 100644 index b0922b1..0000000 --- a/gcc/config/h8300/popcountsi2.c +++ /dev/null @@ -1,40 +0,0 @@ -/* More subroutines needed by GCC output code on some machines. */ -/* Compile this one with gcc. */ -/* Copyright (C) 2003 Free Software Foundation, Inc. - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -In addition to the permissions in the GNU General Public License, the -Free Software Foundation gives you unlimited permission to link the -compiled version of this file into combinations with other programs, -and to distribute those combinations without any restriction coming -from the use of this file. (The General Public License restrictions -do apply in other respects; for example, they cover modification of -the file, and distribution when not linked into a combine -executable.) - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - -extern const unsigned char __popcount_tab[]; - -int -__popcountsi2 (unsigned long x) -{ - return __popcount_tab[(x >> 0) & 0xff] - + __popcount_tab[(x >> 8) & 0xff] - + __popcount_tab[(x >> 16) & 0xff] - + __popcount_tab[(x >> 24) & 0xff]; -} diff --git a/gcc/config/h8300/t-h8300 b/gcc/config/h8300/t-h8300 index 77f495a..d8cbd4f 100644 --- a/gcc/config/h8300/t-h8300 +++ b/gcc/config/h8300/t-h8300 @@ -5,12 +5,7 @@ LIB1ASMSRC = h8300/lib1funcs.asm LIB1ASMFUNCS = _cmpsi2 _ucmpsi2 _divhi3 _divsi3 _mulhi3 _mulsi3 \ _floatdisf _fixsfdi _fixunssfdi _fixunssfsi_asm -LIB2FUNCS_EXTRA = \ - $(srcdir)/config/h8300/fixunssfsi.c \ - $(srcdir)/config/h8300/clzsi2.c \ - $(srcdir)/config/h8300/ctzsi2.c \ - $(srcdir)/config/h8300/paritysi2.c \ - $(srcdir)/config/h8300/popcountsi2.c +LIB2FUNCS_EXTRA = $(srcdir)/config/h8300/fixunssfsi.c # We do not have DF or DI types, so fake out the libgcc2 compilation. TARGET_LIBGCC2_CFLAGS = -DDF=SF -DDI=SI |