diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-07 07:25:32 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-07 07:25:32 +0000 |
commit | 0fbe5a3ef21baf78f3da21ab7fa66f9b28a812f5 (patch) | |
tree | d4a8b3ee4b8b88dd468603c0b19601f19c2ce133 /gcc/expr.c | |
parent | 6d84574d06901f5e333ccbbc163245cc4267253a (diff) | |
download | gcc-0fbe5a3ef21baf78f3da21ab7fa66f9b28a812f5.tar.gz |
* expr.c (cmpstr_optab, cmpmem_optab): New.
* genopinit.c: Initialize them.
* optabs.h: Declare them.
* optabs.c (init_optabs): Clear them.
(prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
block memory compare insns, not conditional chains. Restructure
the fallback generation of a call to memcmp/bcmp for better
readability.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index 015faaf3798..9c912d0b60a 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -235,6 +235,11 @@ enum insn_code movstr_optab[NUM_MACHINE_MODES]; /* This array records the insn_code of insns to perform block clears. */ enum insn_code clrstr_optab[NUM_MACHINE_MODES]; +/* These arrays record the insn_code of two different kinds of insns + to perform block compares. */ +enum insn_code cmpstr_optab[NUM_MACHINE_MODES]; +enum insn_code cmpmem_optab[NUM_MACHINE_MODES]; + /* Stack of EXPR_WITH_FILE_LOCATION nested expressions. */ struct file_stack *expr_wfl_stack; |