aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorCatherine Moore <clm@codesourcery.com>2008-11-03 18:55:25 -0500
committerCatherine Moore <clm@gcc.gnu.org>2008-11-03 18:55:25 -0500
commit1e27273ff09c94c23e5823710f2bc3722e9fab5c (patch)
treefb04b17bca35630ee148d2a8cc3b0882058e1b5c /gcc/config/mips
parentf61d4b67ff5a1dd89acba91b3f5389128ceb929d (diff)
downloadgcc-1e27273ff09c94c23e5823710f2bc3722e9fab5c.zip
gcc-1e27273ff09c94c23e5823710f2bc3722e9fab5c.tar.gz
gcc-1e27273ff09c94c23e5823710f2bc3722e9fab5c.tar.bz2
mips.c (mips_conditional_register_usage): Handle the DSP control register.
* config/mips.c (mips_conditional_register_usage): Handle the DSP control register. * doc/extend.texi: Document the DSP control register. From-SVN: r141568
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index f566e03..fa78c8b 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -14019,7 +14019,14 @@ mips_swap_registers (unsigned int i)
void
mips_conditional_register_usage (void)
{
- if (!ISA_HAS_DSP)
+
+ if (ISA_HAS_DSP)
+ {
+ /* These DSP control register fields are global. */
+ global_regs[CCDSP_PO_REGNUM] = 1;
+ global_regs[CCDSP_SC_REGNUM] = 1;
+ }
+ else
{
int regno;