aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorGraham Markall <graham.markall@embecosm.com>2016-06-21 14:03:08 +0100
committerNick Clifton <nickc@redhat.com>2016-06-21 14:03:08 +0100
commitbdd582dbf14f12998a0003b5aa772d7868bc3dc7 (patch)
tree04cb7f98144d9b2f56c2dac4d08760d10662fe0f /gas/testsuite
parent782c112285467b906296b020f8fce3fb76cc5bb5 (diff)
downloadgdb-bdd582dbf14f12998a0003b5aa772d7868bc3dc7.zip
gdb-bdd582dbf14f12998a0003b5aa772d7868bc3dc7.tar.gz
gdb-bdd582dbf14f12998a0003b5aa772d7868bc3dc7.tar.bz2
Arc assembler: Convert nps400 from a machine type to an extension.
gas * config/tc-arc.c (check_cpu_feature, md_parse_option): Add nps400 option and feature. Add check for nps400 feature. Refactor existing checks to check subclass before feature enablement. (md_show_usage): Document flags for NPS-400 and add some other undocumented flags. (cpu_type): Remove nps400 CPU type entry (check_zol): Remove bfd_mach_arc_nps400 case. (md_show_usage): Add help on -mcpu=nps400. (cpu_types): Add entry for nps400 as arc700 plus nps400 extension set. * doc/c-arc.texi: Document the -mnps400, -mspfp, -mdpfp, and -fpuda flags. Document -mcpu=nps400. * testsuite/gas/arc/nps-400-0.d: Use -mcpu=arc700 -mnps400. Change expected flags to match ARC700 instead of NPS400. * testsuite/gas/arc/nps-400-1.d: Use -mcpu=arc700 -mnps400. * testsuite/gas/arc/nps-400-2.d: Likewise. * testsuite/gas/arc/nps-400-3.d: Likewise. * testsuite/gas/arc/nps-400-4.d: Likewise. * testsuite/gas/arc/nps-400-5.d: Likewise. * testsuite/gas/arc/nps-400-6.d: Likewise. * testsuite/gas/arc/nps-400-7.d: Likewise. * testsuite/gas/arc/textinsn2op01.s: Change opcode of myinsn to avoid clash with cbba instruction. * testsuite/gas/arc/textinsn2op01.d: Likewise. * testsuite/gas/arc/textinsn3op.d: Likewise. * testsuite/gas/arc/textinsn3op.s: Likewise. * testsuite/gas/arc/nps-400-0.d: Test using NPS-400 using -mcpu=nps400 as an alternative to -mcpu=arc700 -mnps400 flags. binutils* readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400 case. ld * testsuite/ld-arc/nps-1a.d: Use -mcpu=arc700 -mnps400. * testsuite/ld-arc/nps-1b.d: Likewise. include * opcode/arc.h: Add nps400 extension and instruction subclass. Remove ARC_OPCODE_NPS400 * elf/arc.h: Remove E_ARC_MACH_NPS400 opcodes * arc-dis.c (arc_insn_length): Add comment on instruction length. Use same method for determining instruction length on ARC700 and NPS-400. (arc_insn_length, print_insn_arc): Remove bfd_mach_arc_nps400. * arc-nps400-tbl.h: Make all nps400 instructions ARC700 instructions with the NPS400 subclass. * arc-opc.c: Likewise. bfd * archures.c: Remove bfd_mach_arc_nps400. * bfd-in2.h: Likewise. * cpu-arc.c (arch_info_struct): Likewise. * elf32-arc.c (arc_elf_object_p, arc_elf_final_write_processing): Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/arc/nps400-0.d4
-rw-r--r--gas/testsuite/gas/arc/nps400-1.d2
-rw-r--r--gas/testsuite/gas/arc/nps400-2.d2
-rw-r--r--gas/testsuite/gas/arc/nps400-3.d2
-rw-r--r--gas/testsuite/gas/arc/nps400-4.d2
-rw-r--r--gas/testsuite/gas/arc/nps400-5.d2
-rw-r--r--gas/testsuite/gas/arc/nps400-6.d2
-rw-r--r--gas/testsuite/gas/arc/nps400-7.d2
-rw-r--r--gas/testsuite/gas/arc/textinsn2op01.d36
-rw-r--r--gas/testsuite/gas/arc/textinsn2op01.s2
-rw-r--r--gas/testsuite/gas/arc/textinsn3op.d108
-rw-r--r--gas/testsuite/gas/arc/textinsn3op.s2
12 files changed, 83 insertions, 83 deletions
diff --git a/gas/testsuite/gas/arc/nps400-0.d b/gas/testsuite/gas/arc/nps400-0.d
index a34a4d5..e5920c8 100644
--- a/gas/testsuite/gas/arc/nps400-0.d
+++ b/gas/testsuite/gas/arc/nps400-0.d
@@ -11,5 +11,5 @@
Machine: ARCompact
Version: 0x1
#...
- Flags: 0x307, NPS400, v3 no-legacy-syscalls ABI
-#... \ No newline at end of file
+ Flags: 0x303, ARC700, v3 no-legacy-syscalls ABI
+#...
diff --git a/gas/testsuite/gas/arc/nps400-1.d b/gas/testsuite/gas/arc/nps400-1.d
index 7272cfd..707b982 100644
--- a/gas/testsuite/gas/arc/nps400-1.d
+++ b/gas/testsuite/gas/arc/nps400-1.d
@@ -1,4 +1,4 @@
-#as: -mcpu=nps400
+#as: -mcpu=arc700 -mnps400
#objdump: -dr
.*: +file format .*arc.*
diff --git a/gas/testsuite/gas/arc/nps400-2.d b/gas/testsuite/gas/arc/nps400-2.d
index 966907e..8327a05 100644
--- a/gas/testsuite/gas/arc/nps400-2.d
+++ b/gas/testsuite/gas/arc/nps400-2.d
@@ -1,4 +1,4 @@
-#as: -mcpu=nps400
+#as: -mcpu=arc700 -mnps400
#objdump: -dr
.*: +file format .*arc.*
diff --git a/gas/testsuite/gas/arc/nps400-3.d b/gas/testsuite/gas/arc/nps400-3.d
index ea52554..5d6ac8a 100644
--- a/gas/testsuite/gas/arc/nps400-3.d
+++ b/gas/testsuite/gas/arc/nps400-3.d
@@ -1,4 +1,4 @@
-#as: -mcpu=nps400
+#as: -mcpu=arc700 -mnps400
#objdump: -dr
.*: +file format .*arc.*
diff --git a/gas/testsuite/gas/arc/nps400-4.d b/gas/testsuite/gas/arc/nps400-4.d
index 2caab8c..99205c6 100644
--- a/gas/testsuite/gas/arc/nps400-4.d
+++ b/gas/testsuite/gas/arc/nps400-4.d
@@ -1,4 +1,4 @@
-#as: -mcpu=nps400
+#as: -mcpu=arc700 -mnps400
#objdump: -dr
.*: +file format .*arc.*
diff --git a/gas/testsuite/gas/arc/nps400-5.d b/gas/testsuite/gas/arc/nps400-5.d
index 214e38e..7e8cc0e 100644
--- a/gas/testsuite/gas/arc/nps400-5.d
+++ b/gas/testsuite/gas/arc/nps400-5.d
@@ -1,4 +1,4 @@
-#as: -mcpu=nps400
+#as: -mcpu=arc700 -mnps400
#objdump: -dr
.*: +file format .*arc.*
diff --git a/gas/testsuite/gas/arc/nps400-6.d b/gas/testsuite/gas/arc/nps400-6.d
index 2edc2b5..972689b 100644
--- a/gas/testsuite/gas/arc/nps400-6.d
+++ b/gas/testsuite/gas/arc/nps400-6.d
@@ -1,4 +1,4 @@
-#as: -mcpu=nps400
+#as: -mcpu=arc700 -mnps400
#objdump: -dr
.*: +file format .*arc.*
diff --git a/gas/testsuite/gas/arc/nps400-7.d b/gas/testsuite/gas/arc/nps400-7.d
index 8e47d19..317753d 100644
--- a/gas/testsuite/gas/arc/nps400-7.d
+++ b/gas/testsuite/gas/arc/nps400-7.d
@@ -1,4 +1,4 @@
-#as: -mcpu=nps400
+#as: -mcpu=arc700 -mnps400
#objdump: -dr
.*: +file format .*arc.*
diff --git a/gas/testsuite/gas/arc/textinsn2op01.d b/gas/testsuite/gas/arc/textinsn2op01.d
index ea14df7..caa4cc0 100644
--- a/gas/testsuite/gas/arc/textinsn2op01.d
+++ b/gas/testsuite/gas/arc/textinsn2op01.d
@@ -6,22 +6,22 @@
Disassembly of section .text:
[0-9a-f]+ <.text>:
- 0: 382d 007e myinsn r0,r1
- 4: 3b2d 373e myinsn fp,sp
- 8: 386d 003e myinsn r0,0
- c: 392d 0fbe ffff ffff myinsn r1,0xffffffff
- 14: 3eed 7080 0000 0000 myinsn 0,r2
- 1c: 3c2d 0fbe 0000 00ff myinsn r4,0xff
- 24: 3e2d 0fbe ffff ff00 myinsn r6,0xffffff00
- 2c: 382d 1fbe 0000 0100 myinsn r8,0x100
- 34: 392d 1fbe ffff feff myinsn r9,0xfffffeff
- 3c: 3b2d 1fbe 4242 4242 myinsn r11,0x42424242
- 44: 382d 0fbe 0000 0000 myinsn r0,0
+ 0: 3830 007e myinsn r0,r1
+ 4: 3b30 373e myinsn fp,sp
+ 8: 3870 003e myinsn r0,0
+ c: 3930 0fbe ffff ffff myinsn r1,0xffffffff
+ 14: 3ef0 7080 0000 0000 myinsn 0,r2
+ 1c: 3c30 0fbe 0000 00ff myinsn r4,0xff
+ 24: 3e30 0fbe ffff ff00 myinsn r6,0xffffff00
+ 2c: 3830 1fbe 0000 0100 myinsn r8,0x100
+ 34: 3930 1fbe ffff feff myinsn r9,0xfffffeff
+ 3c: 3b30 1fbe 4242 4242 myinsn r11,0x42424242
+ 44: 3830 0fbe 0000 0000 myinsn r0,0
48: R_ARC_32_ME foo
- 4c: 382d 807e myinsn.f r0,r1
- 50: 3a6d 807e myinsn.f r2,0x1
- 54: 3eed f100 0000 0000 myinsn.f 0,r4
- 5c: 3d2d 8fbe 0000 0200 myinsn.f r5,0x200
- 64: 3eed f102 0000 0000 myinsn.ne.f 0,r4
- 6c: 3eed ff85 dead beef myinsn.c.f 0xdeadbeef,0xdeadbeef
- 74: 3eed f0a6 dead beef myinsn.nc.f 0xdeadbeef,0x2
+ 4c: 3830 807e myinsn.f r0,r1
+ 50: 3a70 807e myinsn.f r2,0x1
+ 54: 3ef0 f100 0000 0000 myinsn.f 0,r4
+ 5c: 3d30 8fbe 0000 0200 myinsn.f r5,0x200
+ 64: 3ef0 f102 0000 0000 myinsn.ne.f 0,r4
+ 6c: 3ef0 ff85 dead beef myinsn.c.f 0xdeadbeef,0xdeadbeef
+ 74: 3ef0 f0a6 dead beef myinsn.nc.f 0xdeadbeef,0x2
diff --git a/gas/testsuite/gas/arc/textinsn2op01.s b/gas/testsuite/gas/arc/textinsn2op01.s
index dbd5b24..38a0690 100644
--- a/gas/testsuite/gas/arc/textinsn2op01.s
+++ b/gas/testsuite/gas/arc/textinsn2op01.s
@@ -1,5 +1,5 @@
# Insn 2op .extInstruction test
- .extInstruction myinsn, 0x07, 0x2d, SUFFIX_FLAG|SUFFIX_COND, SYNTAX_2OP|OP1_IMM_IMPLIED
+ .extInstruction myinsn, 0x07, 0x30, SUFFIX_FLAG|SUFFIX_COND, SYNTAX_2OP|OP1_IMM_IMPLIED
myinsn r0,r1
myinsn fp,sp
diff --git a/gas/testsuite/gas/arc/textinsn3op.d b/gas/testsuite/gas/arc/textinsn3op.d
index abf69ff..2615885 100644
--- a/gas/testsuite/gas/arc/textinsn3op.d
+++ b/gas/testsuite/gas/arc/textinsn3op.d
@@ -6,58 +6,58 @@
Disassembly of section .text:
[0-9a-f]+ <.text>:
- 0: 392d 0080 myinsn r0,r1,r2
- 4: 3b2d 371a myinsn gp,fp,sp
- 8: 3e2d 37dd myinsn ilink,r30,blink
- c: 396d 0000 myinsn r0,r1,0
- 10: 3e2d 7080 0000 0000 myinsn r0,0,r2
- 18: 392d 00be myinsn 0,r1,r2
- 1c: 392d 0f80 ffff ffff myinsn r0,r1,0xffffffff
- 24: 3e2d 7080 ffff ffff myinsn r0,0xffffffff,r2
- 2c: 392d 0f80 0000 00ff myinsn r0,r1,0xff
- 34: 3e2d 7080 0000 00ff myinsn r0,0xff,r2
- 3c: 392d 0f80 ffff ff00 myinsn r0,r1,0xffffff00
- 44: 3e2d 7080 ffff ff00 myinsn r0,0xffffff00,r2
- 4c: 392d 0f80 0000 0100 myinsn r0,r1,0x100
- 54: 3e2d 7080 ffff feff myinsn r0,0xfffffeff,r2
- 5c: 3e2d 7f80 0000 0100 myinsn r0,0x100,0x100
- 64: 392d 0f80 0000 0000 myinsn r0,r1,0
+ 0: 3930 0080 myinsn r0,r1,r2
+ 4: 3b30 371a myinsn gp,fp,sp
+ 8: 3e30 37dd myinsn ilink,r30,blink
+ c: 3970 0000 myinsn r0,r1,0
+ 10: 3e30 7080 0000 0000 myinsn r0,0,r2
+ 18: 3930 00be myinsn 0,r1,r2
+ 1c: 3930 0f80 ffff ffff myinsn r0,r1,0xffffffff
+ 24: 3e30 7080 ffff ffff myinsn r0,0xffffffff,r2
+ 2c: 3930 0f80 0000 00ff myinsn r0,r1,0xff
+ 34: 3e30 7080 0000 00ff myinsn r0,0xff,r2
+ 3c: 3930 0f80 ffff ff00 myinsn r0,r1,0xffffff00
+ 44: 3e30 7080 ffff ff00 myinsn r0,0xffffff00,r2
+ 4c: 3930 0f80 0000 0100 myinsn r0,r1,0x100
+ 54: 3e30 7080 ffff feff myinsn r0,0xfffffeff,r2
+ 5c: 3e30 7f80 0000 0100 myinsn r0,0x100,0x100
+ 64: 3930 0f80 0000 0000 myinsn r0,r1,0
68: R_ARC_32_ME foo
- 6c: 38ed 0080 myinsn r0,r0,r2
- 70: 3bed 0140 myinsn r3,r3,r5
- 74: 3eed 0201 myinsn.eq r6,r6,r8
- 78: 39ed 12c1 myinsn.eq r9,r9,r11
- 7c: 3ced 1382 myinsn.ne r12,r12,r14
- 80: 3fed 1442 myinsn.ne r15,r15,r17
- 84: 3aed 2503 myinsn.p r18,r18,r20
- 88: 3ded 25c3 myinsn.p r21,r21,r23
- 8c: 38ed 3684 myinsn.n r24,r24,gp
- 90: 3bed 3744 myinsn.n fp,fp,ilink
- 94: 3eed 37c5 myinsn.c r30,r30,blink
- 98: 3bed 00c5 myinsn.c r3,r3,r3
- 9c: 3bed 0205 myinsn.c r3,r3,r8
- a0: 3bed 0106 myinsn.nc r3,r3,r4
- a4: 3ced 0106 myinsn.nc r4,r4,r4
- a8: 3ced 01c6 myinsn.nc r4,r4,r7
- ac: 3ced 0147 myinsn.v r4,r4,r5
- b0: 3ded 0147 myinsn.v r5,r5,r5
- b4: 3ded 0148 myinsn.nv r5,r5,r5
- b8: 3ded 0148 myinsn.nv r5,r5,r5
- bc: 3eed 0009 myinsn.gt r6,r6,r0
- c0: 38ed 002a myinsn.ge r0,r0,0
- c4: 39ed 006b myinsn.lt r1,r1,0x1
- c8: 3bed 00ed myinsn.hi r3,r3,0x3
- cc: 3ced 012e myinsn.ls r4,r4,0x4
- d0: 3ded 016f myinsn.pnz r5,r5,0x5
- d4: 392d 8080 myinsn.f r0,r1,r2
- d8: 396d 8040 myinsn.f r0,r1,0x1
- dc: 3e2d f080 0000 0001 myinsn.f r0,0x1,r2
- e4: 392d 80be myinsn.f 0,r1,r2
- e8: 392d 8f80 0000 0200 myinsn.f r0,r1,0x200
- f0: 3e2d f080 0000 0200 myinsn.f r0,0x200,r2
- f8: 39ed 8081 myinsn.eq.f r1,r1,r2
- fc: 38ed 8022 myinsn.ne.f r0,r0,0
- 100: 3aed 808b myinsn.lt.f r2,r2,r2
- 104: 3eed f0a9 0000 0001 myinsn.gt.f 0,0x1,0x2
- 10c: 3eed ff8c 0000 0200 myinsn.le.f 0,0x200,0x200
- 114: 3eed f0aa 0000 0200 myinsn.ge.f 0,0x200,0x2
+ 6c: 38f0 0080 myinsn r0,r0,r2
+ 70: 3bf0 0140 myinsn r3,r3,r5
+ 74: 3ef0 0201 myinsn.eq r6,r6,r8
+ 78: 39f0 12c1 myinsn.eq r9,r9,r11
+ 7c: 3cf0 1382 myinsn.ne r12,r12,r14
+ 80: 3ff0 1442 myinsn.ne r15,r15,r17
+ 84: 3af0 2503 myinsn.p r18,r18,r20
+ 88: 3df0 25c3 myinsn.p r21,r21,r23
+ 8c: 38f0 3684 myinsn.n r24,r24,gp
+ 90: 3bf0 3744 myinsn.n fp,fp,ilink
+ 94: 3ef0 37c5 myinsn.c r30,r30,blink
+ 98: 3bf0 00c5 myinsn.c r3,r3,r3
+ 9c: 3bf0 0205 myinsn.c r3,r3,r8
+ a0: 3bf0 0106 myinsn.nc r3,r3,r4
+ a4: 3cf0 0106 myinsn.nc r4,r4,r4
+ a8: 3cf0 01c6 myinsn.nc r4,r4,r7
+ ac: 3cf0 0147 myinsn.v r4,r4,r5
+ b0: 3df0 0147 myinsn.v r5,r5,r5
+ b4: 3df0 0148 myinsn.nv r5,r5,r5
+ b8: 3df0 0148 myinsn.nv r5,r5,r5
+ bc: 3ef0 0009 myinsn.gt r6,r6,r0
+ c0: 38f0 002a myinsn.ge r0,r0,0
+ c4: 39f0 006b myinsn.lt r1,r1,0x1
+ c8: 3bf0 00ed myinsn.hi r3,r3,0x3
+ cc: 3cf0 012e myinsn.ls r4,r4,0x4
+ d0: 3df0 016f myinsn.pnz r5,r5,0x5
+ d4: 3930 8080 myinsn.f r0,r1,r2
+ d8: 3970 8040 myinsn.f r0,r1,0x1
+ dc: 3e30 f080 0000 0001 myinsn.f r0,0x1,r2
+ e4: 3930 80be myinsn.f 0,r1,r2
+ e8: 3930 8f80 0000 0200 myinsn.f r0,r1,0x200
+ f0: 3e30 f080 0000 0200 myinsn.f r0,0x200,r2
+ f8: 39f0 8081 myinsn.eq.f r1,r1,r2
+ fc: 38f0 8022 myinsn.ne.f r0,r0,0
+ 100: 3af0 808b myinsn.lt.f r2,r2,r2
+ 104: 3ef0 f0a9 0000 0001 myinsn.gt.f 0,0x1,0x2
+ 10c: 3ef0 ff8c 0000 0200 myinsn.le.f 0,0x200,0x200
+ 114: 3ef0 f0aa 0000 0200 myinsn.ge.f 0,0x200,0x2
diff --git a/gas/testsuite/gas/arc/textinsn3op.s b/gas/testsuite/gas/arc/textinsn3op.s
index a07aa9d..d2fbc3c 100644
--- a/gas/testsuite/gas/arc/textinsn3op.s
+++ b/gas/testsuite/gas/arc/textinsn3op.s
@@ -1,5 +1,5 @@
# Insn 3op .extInstruction test
- .extInstruction myinsn, 0x07, 0x2d, SUFFIX_FLAG|SUFFIX_COND, SYNTAX_3OP
+ .extInstruction myinsn, 0x07, 0x30, SUFFIX_FLAG|SUFFIX_COND, SYNTAX_3OP
myinsn r0,r1,r2
myinsn r26,fp,sp