Add support for sparc compare-and-branch instructions.
authorDavid S. Miller <davem@redhat.com>
Fri, 27 Apr 2012 18:03:13 +0000 (18:03 +0000)
committerDavid S. Miller <davem@redhat.com>
Fri, 27 Apr 2012 18:03:13 +0000 (18:03 +0000)
commit698544e152e041de8aaaaeea99f6f3c00ee99604
tree264045c30492ca6144e246820391c0b5cf651a1d
parent6cda13266f4d767456ccd5ee9f4c8539b463fc0e
Add support for sparc compare-and-branch instructions.

opcodes/

* sparc-opc.c (CBCOND): New define.
(CBCOND_XCC): Likewise.
(cbcond): New helper macro.
(sparc_opcodes): Add compare-and-branch instructions.

gas/

* config/tc-sparc.c (sparc_arch_table): Add HWCAP_CBCOND to
sparc4, v8pluse, v8plusv, v9e, and v9v.
(sparc_ip): Handle R_SPARC_5 of immediate constants inline in
order to accomodate cbcond which otherwise would require two
relocations to be handled in a single instruction..

gas/testsuite/

* gas/sparc/cbcond.s: New file.
* gas/sparc/cbcond.d: New file.
* gas/sparc/sparc.exp: Run cbcond test.
gas/ChangeLog
gas/config/tc-sparc.c
gas/testsuite/ChangeLog
gas/testsuite/gas/sparc/cbcond.d [new file with mode: 0644]
gas/testsuite/gas/sparc/cbcond.s [new file with mode: 0644]
gas/testsuite/gas/sparc/sparc.exp
opcodes/ChangeLog
opcodes/sparc-opc.c
This page took 0.024561 seconds and 4 git commands to generate.