r208758 - in /branches/ibm/gcc-4_8-branch: gcc/...
bergner@gcc.gnu.org
bergner@gcc.gnu.org
Fri Mar 21 22:15:00 GMT 2014
Author: bergner
Date: Fri Mar 21 22:15:15 2014
New Revision: 208758
URL: http://gcc.gnu.org/viewcvs?rev=208758&root=gcc&view=rev
Log:
Add long double builtins. This is not intended for mainline or
the FSF 4.8 branch.
libgcc/
* config/rs6000/ibm-ldouble.c (pack_ldouble): New function.
(__gcc_qadd): Use it.
(__gcc_qmul): Likewise.
(__gcc_qdiv): Likewise.
(__gcc_qneg): Likewise.
(__gcc_stoq): Likewise.
(__gcc_dtoq): Likewise.
gcc/
* config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_LONGDOUBLE_DW0): Add
new long double builtin.
(RS6000_BUILTIN_LONGDOUBLE_DW1): Likewise.
(RS6000_BUILTIN_PACK_LONGDOUBLE): Likewise.
* config/rs6000/rs6000.c (rs6000_expand_builtin): Add builtins
__builtin_longdouble_dw0, __builtin_longdouble_dw1 and
__builtin_pack_longdouble.
(rs6000_init_builtins): Likewise.
* config/rs6000/rs6000.md (unspec): Add unspecs UNSPEC_LONGDOUBLE_DW0,
UNSPEC_LONGDOUBLE_DW1 and UNSPEC_PACK_LONGDOUBLE.
(longdouble_dw0): New define_insn_and_split.
(longdouble_dw1): New define_insn.
(pack_longdouble): Likewise.
Modified:
branches/ibm/gcc-4_8-branch/gcc/ChangeLog.ibm
branches/ibm/gcc-4_8-branch/gcc/config/rs6000/rs6000-builtin.def
branches/ibm/gcc-4_8-branch/gcc/config/rs6000/rs6000.c
branches/ibm/gcc-4_8-branch/gcc/config/rs6000/rs6000.md
branches/ibm/gcc-4_8-branch/libgcc/ChangeLog.ibm
branches/ibm/gcc-4_8-branch/libgcc/config/rs6000/ibm-ldouble.c
More information about the Gcc-cvs
mailing list