diff options
author | Richard Henderson <rth@gcc.gnu.org> | 2000-07-28 10:46:18 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-07-28 10:46:18 -0700 |
commit | 4b983fdc50c590dde021fae533d8c3745897fdae (patch) | |
tree | c6bbf69024ca51b064647b9762f5100f294e8b2b /gcc/rtl.def | |
parent | 777ba8d110978fc69481e5f50ebcca1fd39a8542 (diff) | |
download | gcc-4b983fdc50c590dde021fae533d8c3745897fdae.zip gcc-4b983fdc50c590dde021fae533d8c3745897fdae.tar.gz gcc-4b983fdc50c590dde021fae533d8c3745897fdae.tar.bz2 |
cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
* cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
(cse_insn): Likewise.
(addr_affects_sp_p): Likewise.
* expr.c (move_by_pieces): Likewise.
(clear_by_pieces): Likewise.
* gcse.c (oprs_unchanged_p): Likewise.
* haifa-sched.c (sched_analyze_2): Likewise.
* recog.c (offsettable_address_p): Likewise.
* regclass.c (record_address_regs): Likewise.
* reload.c (find_reusable_reload): Likewise.
(push_reload): Likewise.
(operands_match_p): Likewise.
(decompose): Likewise.
(find_reloads_address_1): Likewise.
(find_inc_amount): Likewise.
* reload1.c (elimination_effects): Likewise.
* resource.c (mark_set_resources): Likewise.
* flow.c (attempt_auto_inc): New function; mostly broken out
of find_auto_inc.
(find_auto_inc): Split into two functions and enhanced to
generate POST_MODIFY.
* rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
* rtl.h (count_all_occurrences): Declare.
(HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
defined.
* rtlanal.c (count_all_occurrences): New function.
* tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
* config/ia64/ia64-protos.h (destination_operand): Declare.
* config/ia64/ia64.c (destination_operand): New function.
(ia64_print_operand): Handle POST_MODIFY.
(rtx_needs_barrier): Likewise.
* config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
(HAVE_POST_MODIFY_REG): Define to 1.
(MAX_REGS_PER_ADDRESS): Change to 2.
(GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
(LEGITIMATE_ADDRESS_REG): New helper macro.
(LEGITIMATE_ADDRESS_DISP): Likewise.
(PREDICATE_CODES): Add entry for destination_operand.
* config/ia64/ia64.md (all mov patterns): Use destination_operand
predicate for operand 0.
From-SVN: r35321
Diffstat (limited to 'gcc/rtl.def')
-rw-r--r-- | gcc/rtl.def | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/gcc/rtl.def b/gcc/rtl.def index 6a0b73e..fcad7ec 100644 --- a/gcc/rtl.def +++ b/gcc/rtl.def @@ -56,6 +56,7 @@ Boston, MA 02111-1307, USA. */ "i" an rtx code for a machine insn (INSN, JUMP_INSN, CALL_INSN) "m" an rtx code for something that matches in insns (e.g, MATCH_DUP) "g" an rtx code for grouping insns together (e.g, GROUP_PARALLEL) + "a" an rtx code for autoincrement addressing modes (e.g. POST_DEC) "x" everything else */ @@ -756,18 +757,25 @@ DEF_RTL_EXPR(UMAX, "umax", "ee", 'c') containing MEM. These operations exist in only two cases: 1. pushes onto the stack. 2. created automatically by the life_analysis pass in flow.c. */ -DEF_RTL_EXPR(PRE_DEC, "pre_dec", "e", 'x') -DEF_RTL_EXPR(PRE_INC, "pre_inc", "e", 'x') -DEF_RTL_EXPR(POST_DEC, "post_dec", "e", 'x') -DEF_RTL_EXPR(POST_INC, "post_inc", "e", 'x') +DEF_RTL_EXPR(PRE_DEC, "pre_dec", "e", 'a') +DEF_RTL_EXPR(PRE_INC, "pre_inc", "e", 'a') +DEF_RTL_EXPR(POST_DEC, "post_dec", "e", 'a') +DEF_RTL_EXPR(POST_INC, "post_inc", "e", 'a') /* These binary operations are used to represent generic address side-effects in memory addresses, except for simple incrementation or decrementation which use the above operations. They are - created automatically by the life_analysis pass in flow.c. - (Note that these operators are currently placeholders.) */ -DEF_RTL_EXPR(PRE_MODIFY, "pre_modify", "ee", 'x') -DEF_RTL_EXPR(POST_MODIFY, "post_modify", "ee", 'x') + created automatically by the life_analysis pass in flow.c. + The first operand is a REG which is used as the address. + The second operand is an expression that is assigned to the + register, either before (PRE_MODIFY) or after (POST_MODIFY) + evaluating the address. + Currently, the compiler can only handle second operands of the + form (plus (reg) (reg)) and (plus (reg) (const_int)), where + the first operand of the PLUS has to be the same register as + the first operand of the *_MODIFY. */ +DEF_RTL_EXPR(PRE_MODIFY, "pre_modify", "ee", 'a') +DEF_RTL_EXPR(POST_MODIFY, "post_modify", "ee", 'a') /* Comparison operations. The ordered comparisons exist in two flavors, signed and unsigned. */ |