diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2002-03-16 23:58:35 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2002-03-16 23:58:35 +0000 |
commit | 4dffef52e8c67e18f6ad0251d133a002c4645dc4 (patch) | |
tree | 0a107ca9c5d171f07ae9b2fb9f4c3e7333d9fc14 /gcc/config/mips | |
parent | 4f5bd6d713dc20d5b57a1619ad578284f20d4b89 (diff) | |
download | gcc-4dffef52e8c67e18f6ad0251d133a002c4645dc4.tar.gz |
mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
* config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
* config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
From-SVN: r50898
Diffstat (limited to 'gcc/config/mips')
-rw-r--r-- | gcc/config/mips/mips.h | 2 | ||||
-rw-r--r-- | gcc/config/mips/mips.md | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index ded10123c19..644592d5533 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -660,7 +660,7 @@ extern void sbss_section PARAMS ((void)); ) /* ISA has conditional trap instructions. */ -#define ISA_HAS_COND_TRAP (mips_isa >= 2) +#define ISA_HAS_COND_TRAP (mips_isa >= 2 && ! TARGET_MIPS16) /* ISA has multiply-accumulate instructions, madd and msub. */ #define ISA_HAS_MADD_MSUB (mips_isa == 32 \ diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 91df86cc052..b9490f045e0 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -546,6 +546,8 @@ { if (ISA_HAS_COND_TRAP) return \"teq\\t$0,$0\"; + else if (TARGET_MIPS16) + return \"break 0\"; else return \"break\"; }") |