aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2015-04-30 17:17:20 -0700
committerJose E. Marchesi <jose.marchesi@oracle.com>2015-05-06 09:26:23 -0700
commitf9911bebcab64889ec7ab3571305081741aa03e4 (patch)
treee494b7c63418f7dc99cf98735a9e5695f4740e08 /gas/config
parent9ac47a43ffc8e3c73867b9953145a8e7a227132d (diff)
downloadfsf-binutils-gdb-f9911bebcab64889ec7ab3571305081741aa03e4.zip
fsf-binutils-gdb-f9911bebcab64889ec7ab3571305081741aa03e4.tar.gz
fsf-binutils-gdb-f9911bebcab64889ec7ab3571305081741aa03e4.tar.bz2
gas: support for the sparc %ncc condition codes register.
gas/ChangeLog: 2015-05-06 Jose E. Marchesi <jose.marchesi@oracle.com> * config/tc-sparc.c (sparc_ip): Support the %ncc "natural" condition codes * doc/c-sparc.texi (Sparc-Regs): Document %ncc. gas/testsuite/ChangeLog: 2015-05-06 Jose E. Marchesi <jose.marchesi@oracle.com> * gas/sparc/natural.s: New file. * gas/sparc/natural-32.s: Likewise. * gas/sparc/natural.d: Likewise. * gas/sparc/natural-32.d: Likewise. * gas/sparc/sparc.exp (sparc_elf_setup): Run the tests natural and natural-32.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-sparc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c
index 60bdcc6..3ffe74f 100644
--- a/gas/config/tc-sparc.c
+++ b/gas/config/tc-sparc.c
@@ -1973,7 +1973,8 @@ sparc_ip (char *str, const struct sparc_opcode **pinsn)
{
++s;
}
- if (strncmp (s, "%icc", 4) == 0)
+ if ((strncmp (s, "%icc", 4) == 0)
+ || (sparc_arch_size == 32 && strncmp (s, "%ncc", 4) == 0))
{
s += 4;
continue;
@@ -1985,7 +1986,8 @@ sparc_ip (char *str, const struct sparc_opcode **pinsn)
{
++s;
}
- if (strncmp (s, "%xcc", 4) == 0)
+ if ((strncmp (s, "%xcc", 4) == 0)
+ || (sparc_arch_size == 64 && strncmp (s, "%ncc", 4) == 0))
{
s += 4;
continue;