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/optabs.h | |
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/optabs.h')
-rw-r--r-- | gcc/optabs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h index d8448af..20d5df6 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -348,6 +348,11 @@ extern enum insn_code movstr_optab[NUM_MACHINE_MODES]; /* This array records the insn_code of insns to perform block clears. */ extern enum insn_code clrstr_optab[NUM_MACHINE_MODES]; +/* These arrays record the insn_code of two different kinds of insns + to perform block compares. */ +extern enum insn_code cmpstr_optab[NUM_MACHINE_MODES]; +extern enum insn_code cmpmem_optab[NUM_MACHINE_MODES]; + /* Define functions given in optabs.c. */ /* Expand a binary operation given optab and rtx operands. */ |