diff options
author | gkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-12 18:40:58 +0000 |
---|---|---|
committer | gkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-12 18:40:58 +0000 |
commit | ea98ee5207227717f7cd3b6a5cec6f9d00f527b5 (patch) | |
tree | 93c6f2d62aaecc62c9172d737563813c5dfe8a12 /gcc/config/mips/mips.h | |
parent | c87aba630389d4463e9131b703e81f45508c54f8 (diff) | |
download | ppe42-gcc-ea98ee5207227717f7cd3b6a5cec6f9d00f527b5.tar.gz ppe42-gcc-ea98ee5207227717f7cd3b6a5cec6f9d00f527b5.zip |
* config/mips/mips-protos.h
(trap_cmp_op, mips_gen_conditional_trap): New func decls.
* config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
(PREDICATE_CODES): Add "trap_cmp_op".
* config/mips/mips.c
(trap_cmp_op, mips_gen_conditional_trap): New functions.
* config/mips/mips.md (trap, conditional_trap): New patterns.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36371 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/mips.h')
-rw-r--r-- | gcc/config/mips/mips.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 531af1790e9..98c046b8cea 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -607,6 +607,8 @@ extern void sbss_section PARAMS ((void)); #define ISA_HAS_FP4 (mips_isa == 4 \ ) +/* ISA has conditional trap instructions. */ +#define ISA_HAS_COND_TRAP (mips_isa >= 2) /* CC1_SPEC causes -mips3 and -mips4 to set -mfp64 and -mgp64; -mips1 or @@ -3713,6 +3715,7 @@ while (0) {"equality_op", { EQ, NE }}, \ {"cmp_op", { EQ, NE, GT, GE, GTU, GEU, LT, LE, \ LTU, LEU }}, \ + {"trap_cmp_op", { EQ, NE, GE, GEU, LT, LTU }}, \ {"pc_or_label_operand", { PC, LABEL_REF }}, \ {"call_insn_operand", { CONST_INT, CONST, SYMBOL_REF, REG}}, \ {"move_operand", { CONST_INT, CONST_DOUBLE, CONST, \ |