[ARC] Fix and extend features of .cpu directive.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 17 Nov 2016 12:26:54 +0000 (13:26 +0100)
committerClaudiu Zissulescu <claziss@synopsys.com>
Fri, 18 Nov 2016 13:29:48 +0000 (14:29 +0100)
commitbb050a6932c4b0ea86202fe62bed2d94999f77ad
treef610c347bb4464491521d5f0bc8077b96a38470b
parentcc133f9f118ef4afd93da0ecba48151488c41c74
[ARC] Fix and extend features of .cpu directive.

gas/
2016-11-18  Claudiu Zissulescu  <claziss@synopsys.com>

* testsuite/gas/arc/cl-warn.s: New file.
* testsuite/gas/arc/cpu-pseudop-1.d: Likewise.
* testsuite/gas/arc/cpu-pseudop-1.s: Likewise.
* testsuite/gas/arc/cpu-pseudop-2.d: Likewise.
* testsuite/gas/arc/cpu-pseudop-2.s: Likewise.
* testsuite/gas/arc/cpu-warn2.s: Likewise.
* config/tc-arc.c (selected_cpu): Initialize.
(feature_type): New struct.
(feature_list): New variable.
(arc_check_feature): New function.
(arc_select_cpu): Check for .cpu duplicates. Don't overwrite the
current cpu features. Check if a feature is available for a given
cpu.
(md_parse_option): Test if features are available for a given cpu.
gas/ChangeLog
gas/config/tc-arc.c
gas/testsuite/gas/arc/cl-warn.s [new file with mode: 0644]
gas/testsuite/gas/arc/cpu-pseudop-1.d [new file with mode: 0644]
gas/testsuite/gas/arc/cpu-pseudop-1.s [new file with mode: 0644]
gas/testsuite/gas/arc/cpu-pseudop-2.d [new file with mode: 0644]
gas/testsuite/gas/arc/cpu-pseudop-2.s [new file with mode: 0644]
gas/testsuite/gas/arc/cpu-warn2.s [new file with mode: 0644]
This page took 0.024697 seconds and 4 git commands to generate.