diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-07 09:24:45 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-07 09:24:45 +0000 |
commit | 406034fa4b563e02d1570ec6d1457688c932536d (patch) | |
tree | a36fbb677db9b9d77dd79d4991fb6f4bd8349ebc /gcc/rtl.h | |
parent | 40977116f1eefb8672a9403f109f73461963545f (diff) | |
download | gcc-406034fa4b563e02d1570ec6d1457688c932536d.tar.gz |
* rtl.def (COND_EXEC): New.
* rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
* tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
* genconfig.c (have_cond_arith_flag): Remove.
(have_cond_exec_flag): New.
(walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
(main): Print HAVE_conditional_execution.
* haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
(sched_analyze_insn, print_pattern): Likewise.
* reload.c (find_equiv_reg): Likewise.
* rtlanal.c (reg_referenced_p): Likewise.
(note_stores, dead_or_set_regno_p): Likewise.
(reg_overlap_mentioned_p): Rewrite to use a switch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h index 517a0dbd8db..124c6bf3d92 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -807,6 +807,12 @@ extern const char * const note_insn_name[]; #define TRAP_CONDITION(RTX) XCEXP(RTX, 0, TRAP_IF) #define TRAP_CODE(RTX) XCEXP(RTX, 1, TRAP_IF) +/* For a COND_EXEC rtx, COND_EXEC_TEST is the condition to base + conditionally executing the code on, COND_EXEC_CODE is the code + to execute if the condition is true. */ +#define COND_EXEC_TEST(RTX) XCEXP(RTX, 0, COND_EXEC) +#define COND_EXEC_CODE(RTX) XCEXP(RTX, 1, COND_EXEC) + /* 1 in a SYMBOL_REF if it addresses this function's constants pool. */ #define CONSTANT_POOL_ADDRESS_P(RTX) ((RTX)->unchanging) |