diff options
author | Zack Weinberg <zack@codesourcery.com> | 2003-10-07 07:25:32 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-10-07 07:25:32 +0000 |
commit | 118355a03a02364b065d54f0d2fcfba4280b1226 (patch) | |
tree | d4a8b3ee4b8b88dd468603c0b19601f19c2ce133 /gcc/expr.c | |
parent | d04a575f62b621e3df75c2cd7823a6613a2f1dc8 (diff) | |
download | gcc-118355a03a02364b065d54f0d2fcfba4280b1226.zip gcc-118355a03a02364b065d54f0d2fcfba4280b1226.tar.gz gcc-118355a03a02364b065d54f0d2fcfba4280b1226.tar.bz2 |
expr.c (cmpstr_optab, [...]): New.
* 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.
From-SVN: r72185
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |