This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r115055 - in /trunk/gcc: ChangeLog genpreds.c
- From: sayle at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 28 Jun 2006 19:42:05 -0000
- Subject: r115055 - in /trunk/gcc: ChangeLog genpreds.c
Author: sayle
Date: Wed Jun 28 19:42:04 2006
New Revision: 115055
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115055
Log:
* genpreds.c (generate_switch_p): New function.
(add_mode_tests): Push the new mode test down inside an AND expr
if this allows the switch-suitable MATCH_CODE to be near the root.
(write_match_code_switch): New function to write a MATCH_CODE as
a switch statement.
(write_predicate_stmts): New function to write a predicate RTX
expression as a sequence of statements.
(write_one_predicate_function): Use write_predicate_stmts.
(write_tm_constrs_h): Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/genpreds.c