This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 4/4] [ARC]: Add -mcpu=nps400 command line option
- From: Graham Markall <graham dot markall at embecosm dot com>
- To: binutils at sourceware dot org
- Cc: Claudiu dot Zissulescu at synopsys dot com, Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Fri, 17 Jun 2016 10:17:24 +0100
- Subject: [PATCH 4/4] [ARC]: Add -mcpu=nps400 command line option
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1466085017 dot git dot graham dot markall at embecosm dot com>
- References: <cover dot 1466085017 dot git dot graham dot markall at embecosm dot com>
From: Andrew Burgess <andrew.burgess@embecosm.com>
The NPS400 is the name of an ARC700 variant with a specific extension
set. This commit adds the command line option -mcpu=nps400 which can be
used as an alternative to '-mcpu=arc700 -mnps400'.
gas/ChangeLog:
* config/tc-arc.c (cpu_types): Add entry for nps400 as arc700 plus
nps400 extension set.
* testsuite/gas/arc/nps-400-0.d: Test using NPS-400 using -mcpu=nps400
as an alternative to -mcpu=arc700 -mnps400.
---
gas/ChangeLog | 10 ++++++++++
gas/config/tc-arc.c | 2 ++
gas/testsuite/gas/arc/nps400-0.d | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 9583ec1..460c812 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -428,6 +428,8 @@ static const struct cpu_type
E_ARC_MACH_ARC600, 0x00},
{ "arc700", ARC_OPCODE_ARC700, bfd_mach_arc_arc700,
E_ARC_MACH_ARC700, 0x00},
+ { "nps400", ARC_OPCODE_ARC700 , bfd_mach_arc_arc700,
+ E_ARC_MACH_ARC700, ARC_NPS400},
{ "arcem", ARC_OPCODE_ARCv2EM, bfd_mach_arc_arcv2,
EF_ARC_CPU_ARCV2EM, 0x00},
{ "archs", ARC_OPCODE_ARCv2HS, bfd_mach_arc_arcv2,
diff --git a/gas/testsuite/gas/arc/nps400-0.d b/gas/testsuite/gas/arc/nps400-0.d
index 720a338..e5920c8 100644
--- a/gas/testsuite/gas/arc/nps400-0.d
+++ b/gas/testsuite/gas/arc/nps400-0.d
@@ -1,4 +1,4 @@
-#as: -mcpu=arc700 -mnps400
+#as: -mcpu=nps400
#readelf: -h
#...
--
2.5.5