Add new sparc options to control instruction availability.
authorDavid S. Miller <davem@redhat.com>
Thu, 22 Sep 2011 00:03:30 +0000 (00:03 +0000)
committerDavid S. Miller <davem@redhat.com>
Thu, 22 Sep 2011 00:03:30 +0000 (00:03 +0000)
commit4bafe00ecf3e7b63d3b2b23f5406637261c6b391
tree369728fcaa3c78d1b314f969e2ddd139e1964963
parenta3a129def5d5be57e3766ff7386f238eebd205a1
Add new sparc options to control instruction availability.

gas/

* config/tc-sparc.c (hwcap_allowed): New.
(struct sparc_arch): New field 'hwcap_allowed' containing a bitmask
of F_FOO flags which are enabled by the particular arch setting.
Add new options that provide explicit access to new instructions.
(md_parse_option): Only bump max_architecture if the requested one
is larger, or this is the first explicit request.
(get_hwcap_name): New function.
(sparc_ip): Validate that hwcaps used by an instruction have actually
been enabled.
* doc/c-sparc.texi: Document new sparc options.
gas/ChangeLog
gas/config/tc-sparc.c
gas/doc/c-sparc.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/sparc/hpcvis3.d