linux-mips
[Top] [All Lists]

$ta0 .. $ta3 registers in O32 on MIPS

To: binutils@sourceware.org, linux-mips@linux-mips.org, David Kuehling <dvdkhlng@gmx.de>
Subject: $ta0 .. $ta3 registers in O32 on MIPS
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 28 Sep 2011 14:33:05 +0200
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
The register names $ta0 .. $ta3 were added by SGI for N32 / N64 code.
Because these reference $8 .. $11 just like $t0 .. $t3 in the O32 ABI
their availability in O32 as well appears dangerous, if not a bug:

$ cat s.s 
        addu    $ta0, $ta0
$ mips-linux-as -o s.o s.s
$ file s.o
s.o: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
$

I was expecting an error message and I'm wondering, was this intentional?

  Ralf

<Prev in Thread] Current Thread [Next in Thread>