summaryrefslogtreecommitdiffstats
path: root/gcc/optabs.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-07 07:25:32 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-07 07:25:32 +0000
commit0fbe5a3ef21baf78f3da21ab7fa66f9b28a812f5 (patch)
treed4a8b3ee4b8b88dd468603c0b19601f19c2ce133 /gcc/optabs.h
parent6d84574d06901f5e333ccbbc163245cc4267253a (diff)
downloadppe42-gcc-0fbe5a3ef21baf78f3da21ab7fa66f9b28a812f5.tar.gz
ppe42-gcc-0fbe5a3ef21baf78f3da21ab7fa66f9b28a812f5.zip
* 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/optabs.h')
-rw-r--r--gcc/optabs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h
index d8448afb034..20d5df60cd4 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. */
OpenPOWER on IntegriCloud