This is the mail archive of the gcc-cvs@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]

r120981 - in /branches/fixed-point/gcc: ChangeL...


Author: chaoyingfu
Date: Fri Jan 19 23:24:57 2007
New Revision: 120981

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120981
Log:
* optabs.c (expand_fixed_convert): Expand FIXED_CONVERT to four kinds
of instructions based on UINTP and SATP.
(init_optabs): Initialize fixed_all_optab, fixed_uint_optab,
sat_fixed_all_optab, sat_fixed_uint_optab.
* optabs.h (enum convert_optab_index): Add COI_fixed_all,
COI_fixed_uint, COI_sat_fixed_all, COI_sat_fixed_uint.
(fixed_all_optab, fixed_uint_optab, sat_fixed_all_optab,
sat_fixed_uint_optab): Define.
(expand_fixed_convert): Add one more parameter.
* genopinit.c (optabs): Add fixed_all_optab, fixed_uint_optab,
sat_fixed_all_optab, sat_fixed_uint_optab.
* c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
to define fixed-point constants.
(c_cpp_builtins): Define fixed-point constants.
* rtl.def (FIXED_ALL, FIXED_UINT, SAT_FIXED_ALL, SAT_FIXED_UINT):
New codes.
* expr.c (expand_expr_real_1): Add one parameter to deal with
unsigned integer for FIXED_CONVERT_EXPR.
* fixed-value.c (fixed_convert_from_real): Allow 1.0 for fract data
types to denote the maximum value.
* config/mips/mips-fixed.md (FIXED2, MYSCALARF, MYSCALARI): New mode
macros for fixed-point, floating-point and integer modes.
(fixed_all*, fixed_uint*, sat_fixed_all*, sat_fixed_uint*): New
instructions.

Modified:
    branches/fixed-point/gcc/ChangeLog
    branches/fixed-point/gcc/c-cppbuiltin.c
    branches/fixed-point/gcc/config/mips/mips-fixed.md
    branches/fixed-point/gcc/expr.c
    branches/fixed-point/gcc/fixed-value.c
    branches/fixed-point/gcc/genopinit.c
    branches/fixed-point/gcc/optabs.c
    branches/fixed-point/gcc/optabs.h
    branches/fixed-point/gcc/rtl.def


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