Commit 4dffef52 by Alexandre Oliva Committed by Alexandre Oliva

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
parent 4f5bd6d7
2002-03-16 Alexandre Oliva <aoliva@redhat.com> 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
* config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
* config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
* config/mips/mips.md (addsi3, adddi3): Use scratch register to * config/mips/mips.md (addsi3, adddi3): Use scratch register to
add register to non-constant into sp. add register to non-constant into sp.
......
...@@ -660,7 +660,7 @@ extern void sbss_section PARAMS ((void)); ...@@ -660,7 +660,7 @@ extern void sbss_section PARAMS ((void));
) )
/* ISA has conditional trap instructions. */ /* 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. */ /* ISA has multiply-accumulate instructions, madd and msub. */
#define ISA_HAS_MADD_MSUB (mips_isa == 32 \ #define ISA_HAS_MADD_MSUB (mips_isa == 32 \
......
...@@ -546,6 +546,8 @@ ...@@ -546,6 +546,8 @@
{ {
if (ISA_HAS_COND_TRAP) if (ISA_HAS_COND_TRAP)
return \"teq\\t$0,$0\"; return \"teq\\t$0,$0\";
else if (TARGET_MIPS16)
return \"break 0\";
else else
return \"break\"; return \"break\";
}") }")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment