2000-02-22 Andrew Haley <aph@cygnus.com>
authorAndrew Haley <aph@redhat.com>
Tue, 22 Feb 2000 18:55:30 +0000 (18:55 +0000)
committerAndrew Haley <aph@redhat.com>
Tue, 22 Feb 2000 18:55:30 +0000 (18:55 +0000)
        * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.

gas/ChangeLog
gas/doc/c-mips.texi

index 2653bef..218e218 100644 (file)
@@ -1,3 +1,7 @@
+2000-02-22  Andrew Haley  <aph@cygnus.com>
+
+       * doc/c-mips.texi (MIPS Opts): Document -mgp32 and -mgp64.
+
 1999-12-30  Andrew Haley  <aph@cygnus.com>
 
        * config/tc-mips.c (mips_gp32): New variable.
index fc2555a..6234b0c 100644 (file)
@@ -67,6 +67,19 @@ Generate code for a particular MIPS Instruction Set Architecture level.
 @sc{r10000} processors.  You can also switch instruction sets during the
 assembly; see @ref{MIPS ISA,, Directives to override the ISA level}.
 
+@item -mgp32
+Assume that 32-bit general purpose registers are available.  This
+affects synthetic instructions such as @code{move}, which will assemble
+to a 32-bit or a 64-bit instruction depending on this flag.  On some
+MIPS variants there is be a 32-bit mode flag; when this flag is set,
+64-bit instructions generate a trap.  Also, some 32-bit OSes only save
+the 32-bit registers on a context switch, so it is essential never to
+use the 64-bit registers.
+
+@item -mgp64
+Assume that 64-bit general purpose registers are available.  This is
+provided in the interests of symmetry with -gp32.
+
 @item -mips16
 @itemx -no-mips16
 Generate code for the MIPS 16 processor.  This is equivalent to putting