This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] [GAS] sparc: support %dN and %qN syntax for FP registers.
- From: jose dot marchesi at oracle dot com (Jose E. Marchesi)
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 09 Dec 2015 18:01:31 +0100
- Subject: Re: [PATCH] [GAS] sparc: support %dN and %qN syntax for FP registers.
- Authentication-results: sourceware.org; auth=none
- References: <1447876477-22312-1-git-send-email-jose dot marchesi at oracle dot com> <564F3FF6 dot 7070504 at redhat dot com> <8737vbg5oh dot fsf at oracle dot com>
> 2015-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
>
> * config/tc-sparc.c (sparc_ip): Support %dN and %qN notation for
> double and quad-precision floating-point registers.
Approved - please apply - but ...
Thanks. Committed as below.
I forgot to update the manual. Ok to commit the patch below?
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 147925e..97f1a29 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2015-12-09 Jose E. Marchesi <jose.marchesi@oracle.com>
+ * doc/c-sparc.texi (Sparc-Regs): Document the %dN and %qN notation
+ for floating-point registers.
+
+2015-12-09 Jose E. Marchesi <jose.marchesi@oracle.com>
+
* config/tc-sparc.c (sparc_ip): Support %dN and %qN notation for
double and quad-precision floating-point registers.
diff --git a/gas/doc/c-sparc.texi b/gas/doc/c-sparc.texi
index f482e3a..165790c 100644
--- a/gas/doc/c-sparc.texi
+++ b/gas/doc/c-sparc.texi
@@ -253,6 +253,14 @@ can only be accessed as double or quad, and thus only even
or quad numbered accesses are allowed. For example, @samp{%f34}
is a legal floating point register, but @samp{%f35} is not.
+Floating point registers accessed as double can also be referred using
+the @samp{%d@var{n}} notation, where @var{n} is even. Similarly,
+floating point registers accessed as quad can be referred using the
+@samp{%q@var{n}} notation, where @var{n} is a multiple of 4. For
+example, @samp{%f4} can be denoted as both @samp{%d4} and @samp{%q4}.
+On the other hand, @samp{%f2} can be denoted as @samp{%d2} but not as
+@samp{%q2}.
+
Certain V9 instructions allow access to ancillary state registers.
Most simply they can be referred to as @samp{%asr@var{n}} where
@var{n} can be from 16 to 31. However, there are some aliases