GNU Binutils with patches for OS216
Révision | bdd582dbf14f12998a0003b5aa772d7868bc3dc7 (tree) |
---|---|
l'heure | 2016-06-21 22:03:08 |
Auteur | Graham Markall <graham.markall@embe...> |
Commiter | Nick Clifton |
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.
@@ -1,3 +1,11 @@ | ||
1 | +2016-06-21 Graham Markall <graham.markall@embecosm.com> | |
2 | + | |
3 | + * archures.c: Remove bfd_mach_arc_nps400. | |
4 | + * bfd-in2.h: Likewise. | |
5 | + * cpu-arc.c (arch_info_struct): Likewise. | |
6 | + * elf32-arc.c (arc_elf_object_p, arc_elf_final_write_processing): | |
7 | + Likewise. | |
8 | + | |
1 | 9 | 2016-06-20 H.J. Lu <hongjiu.lu@intel.com> |
2 | 10 | |
3 | 11 | PR ld/18250 |
@@ -375,7 +375,6 @@ DESCRIPTION | ||
375 | 375 | .#define bfd_mach_arc_arc601 4 |
376 | 376 | .#define bfd_mach_arc_arc700 3 |
377 | 377 | .#define bfd_mach_arc_arcv2 5 |
378 | -.#define bfd_mach_arc_nps400 6 | |
379 | 378 | . bfd_arch_m32c, {* Renesas M16C/M32C. *} |
380 | 379 | .#define bfd_mach_m16c 0x75 |
381 | 380 | .#define bfd_mach_m32c 0x78 |
@@ -2186,7 +2186,6 @@ enum bfd_architecture | ||
2186 | 2186 | #define bfd_mach_arc_arc601 4 |
2187 | 2187 | #define bfd_mach_arc_arc700 3 |
2188 | 2188 | #define bfd_mach_arc_arcv2 5 |
2189 | -#define bfd_mach_arc_nps400 6 | |
2190 | 2189 | bfd_arch_m32c, /* Renesas M16C/M32C. */ |
2191 | 2190 | #define bfd_mach_m16c 0x75 |
2192 | 2191 | #define bfd_mach_m32c 0x78 |
@@ -47,9 +47,8 @@ static const bfd_arch_info_type arch_info_struct[] = | ||
47 | 47 | ARC (bfd_mach_arc_arc601, "ARC601", FALSE, &arch_info_struct[3]), |
48 | 48 | ARC (bfd_mach_arc_arc700, "ARC700", FALSE, &arch_info_struct[4]), |
49 | 49 | ARC (bfd_mach_arc_arc700, "A7", FALSE, &arch_info_struct[5]), |
50 | - ARC (bfd_mach_arc_nps400, "NPS400", FALSE, &arch_info_struct[6]), | |
51 | - ARC (bfd_mach_arc_arcv2, "ARCv2", FALSE, &arch_info_struct[7]), | |
52 | - ARC (bfd_mach_arc_arcv2, "EM", FALSE, &arch_info_struct[8]), | |
50 | + ARC (bfd_mach_arc_arcv2, "ARCv2", FALSE, &arch_info_struct[6]), | |
51 | + ARC (bfd_mach_arc_arcv2, "EM", FALSE, &arch_info_struct[7]), | |
53 | 52 | ARC (bfd_mach_arc_arcv2, "HS", FALSE, NULL), |
54 | 53 | }; |
55 | 54 |
@@ -621,9 +621,6 @@ arc_elf_object_p (bfd * abfd) | ||
621 | 621 | case E_ARC_MACH_ARC700: |
622 | 622 | mach = bfd_mach_arc_arc700; |
623 | 623 | break; |
624 | - case E_ARC_MACH_NPS400: | |
625 | - mach = bfd_mach_arc_nps400; | |
626 | - break; | |
627 | 624 | case EF_ARC_CPU_ARCV2HS: |
628 | 625 | case EF_ARC_CPU_ARCV2EM: |
629 | 626 | mach = bfd_mach_arc_arcv2; |
@@ -673,9 +670,6 @@ arc_elf_final_write_processing (bfd * abfd, | ||
673 | 670 | case bfd_mach_arc_arc700: |
674 | 671 | emf = EM_ARC_COMPACT; |
675 | 672 | break; |
676 | - case bfd_mach_arc_nps400: | |
677 | - emf = EM_ARC_COMPACT; | |
678 | - break; | |
679 | 673 | case bfd_mach_arc_arcv2: |
680 | 674 | emf = EM_ARC_COMPACT2; |
681 | 675 | break; |
@@ -1,3 +1,8 @@ | ||
1 | +2016-06-21 Graham Markall <graham.markall@embecosm.com> | |
2 | + | |
3 | + * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400 | |
4 | + case. | |
5 | + | |
1 | 6 | 2016-06-15 Nick Clifton <nickc@redhat.com> |
2 | 7 | |
3 | 8 | * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20 |
@@ -2381,9 +2381,6 @@ decode_ARC_machine_flags (unsigned e_flags, unsigned e_machine, char buf[]) | ||
2381 | 2381 | case E_ARC_MACH_ARC700: |
2382 | 2382 | strcat (buf, ", ARC700"); |
2383 | 2383 | break; |
2384 | - case E_ARC_MACH_NPS400: | |
2385 | - strcat (buf, ", NPS400"); | |
2386 | - break; | |
2387 | 2384 | |
2388 | 2385 | /* The only times we should end up here are (a) A corrupt ELF, (b) A |
2389 | 2386 | new ELF with new architecture being read by an old version of |
@@ -1,3 +1,35 @@ | ||
1 | +2016-06-21 Graham Markall <graham.markall@embecosm.com> | |
2 | + | |
3 | + * config/tc-arc.c (check_cpu_feature, md_parse_option): | |
4 | + Add nps400 option and feature. Add check for nps400 | |
5 | + feature. Refactor existing checks to check subclass before | |
6 | + feature enablement. | |
7 | + (md_show_usage): Document flags for NPS-400 and add some other | |
8 | + undocumented flags. | |
9 | + (cpu_type): Remove nps400 CPU type entry | |
10 | + (check_zol): Remove bfd_mach_arc_nps400 case. | |
11 | + (md_show_usage): Add help on -mcpu=nps400. | |
12 | + (cpu_types): Add entry for nps400 as arc700 plus nps400 extension | |
13 | + set. | |
14 | + * doc/c-arc.texi: Document the -mnps400, -mspfp, -mdpfp, and | |
15 | + -fpuda flags. Document -mcpu=nps400. | |
16 | + * testsuite/gas/arc/nps-400-0.d: Use -mcpu=arc700 -mnps400. Change | |
17 | + expected flags to match ARC700 instead of NPS400. | |
18 | + * testsuite/gas/arc/nps-400-1.d: Use -mcpu=arc700 -mnps400. | |
19 | + * testsuite/gas/arc/nps-400-2.d: Likewise. | |
20 | + * testsuite/gas/arc/nps-400-3.d: Likewise. | |
21 | + * testsuite/gas/arc/nps-400-4.d: Likewise. | |
22 | + * testsuite/gas/arc/nps-400-5.d: Likewise. | |
23 | + * testsuite/gas/arc/nps-400-6.d: Likewise. | |
24 | + * testsuite/gas/arc/nps-400-7.d: Likewise. | |
25 | + * testsuite/gas/arc/textinsn2op01.s: Change opcode of myinsn to | |
26 | + avoid clash with cbba instruction. | |
27 | + * testsuite/gas/arc/textinsn2op01.d: Likewise. | |
28 | + * testsuite/gas/arc/textinsn3op.d: Likewise. | |
29 | + * testsuite/gas/arc/textinsn3op.s: Likewise. | |
30 | + * testsuite/gas/arc/nps-400-0.d: Test using NPS-400 using | |
31 | + -mcpu=nps400 as an alternative to -mcpu=arc700 -mnps400 flags. | |
32 | + | |
1 | 33 | 2016-06-20 Maciej W. Rozycki <macro@imgtec.com> |
2 | 34 | |
3 | 35 | * testsuite/gas/mips/r6-64-n32.d: Change the `name' tag. |
@@ -100,6 +100,7 @@ enum arc_rlx_types | ||
100 | 100 | #define is_fpuda_p(op) (((sc) == DPA)) |
101 | 101 | #define is_br_jmp_insn_p(op) (((op)->insn_class == BRANCH || (op)->insn_class == JUMP)) |
102 | 102 | #define is_kernel_insn_p(op) (((op)->insn_class == KERNEL)) |
103 | +#define is_nps400_p(op) (((sc) == NPS400)) | |
103 | 104 | |
104 | 105 | /* Generic assembler global variables which must be defined by all |
105 | 106 | targets. */ |
@@ -179,6 +180,7 @@ enum options | ||
179 | 180 | OPTION_MCPU, |
180 | 181 | OPTION_CD, |
181 | 182 | OPTION_RELAX, |
183 | + OPTION_NPS400, | |
182 | 184 | |
183 | 185 | /* The following options are deprecated and provided here only for |
184 | 186 | compatibility reasons. */ |
@@ -221,6 +223,7 @@ struct option md_longopts[] = | ||
221 | 223 | { "mHS", no_argument, NULL, OPTION_ARCHS }, |
222 | 224 | { "mcode-density", no_argument, NULL, OPTION_CD }, |
223 | 225 | { "mrelax", no_argument, NULL, OPTION_RELAX }, |
226 | + { "mnps400", no_argument, NULL, OPTION_NPS400 }, | |
224 | 227 | |
225 | 228 | /* The following options are deprecated and provided here only for |
226 | 229 | compatibility reasons. */ |
@@ -425,8 +428,8 @@ static const struct cpu_type | ||
425 | 428 | E_ARC_MACH_ARC600, 0x00}, |
426 | 429 | { "arc700", ARC_OPCODE_ARC700, bfd_mach_arc_arc700, |
427 | 430 | E_ARC_MACH_ARC700, 0x00}, |
428 | - { "nps400", ARC_OPCODE_ARC700 | ARC_OPCODE_NPS400, bfd_mach_arc_nps400, | |
429 | - E_ARC_MACH_NPS400, 0x00}, | |
431 | + { "nps400", ARC_OPCODE_ARC700 , bfd_mach_arc_arc700, | |
432 | + E_ARC_MACH_ARC700, ARC_NPS400}, | |
430 | 433 | { "arcem", ARC_OPCODE_ARCv2EM, bfd_mach_arc_arcv2, |
431 | 434 | EF_ARC_CPU_ARCV2EM, 0x00}, |
432 | 435 | { "archs", ARC_OPCODE_ARCv2HS, bfd_mach_arc_arcv2, |
@@ -1529,20 +1532,19 @@ allocate_tok (expressionS *tok, int ntok, int cidx) | ||
1529 | 1532 | static bfd_boolean |
1530 | 1533 | check_cpu_feature (insn_subclass_t sc) |
1531 | 1534 | { |
1532 | - if (!(arc_features & ARC_CD) | |
1533 | - && is_code_density_p (sc)) | |
1535 | + if (is_code_density_p (sc) && !(arc_features & ARC_CD)) | |
1534 | 1536 | return FALSE; |
1535 | 1537 | |
1536 | - if (!(arc_features & ARC_SPFP) | |
1537 | - && is_spfp_p (sc)) | |
1538 | + if (is_spfp_p (sc) && !(arc_features & ARC_SPFP)) | |
1538 | 1539 | return FALSE; |
1539 | 1540 | |
1540 | - if (!(arc_features & ARC_DPFP) | |
1541 | - && is_dpfp_p (sc)) | |
1541 | + if (is_dpfp_p (sc) && !(arc_features & ARC_DPFP)) | |
1542 | 1542 | return FALSE; |
1543 | 1543 | |
1544 | - if (!(arc_features & ARC_FPUDA) | |
1545 | - && is_fpuda_p (sc)) | |
1544 | + if (is_fpuda_p (sc) && !(arc_features & ARC_FPUDA)) | |
1545 | + return FALSE; | |
1546 | + | |
1547 | + if (is_nps400_p (sc) && !(arc_features & ARC_NPS400)) | |
1546 | 1548 | return FALSE; |
1547 | 1549 | |
1548 | 1550 | return TRUE; |
@@ -3341,6 +3343,9 @@ md_parse_option (int c, const char *arg ATTRIBUTE_UNUSED) | ||
3341 | 3343 | relaxation_state = 1; |
3342 | 3344 | break; |
3343 | 3345 | |
3346 | + case OPTION_NPS400: | |
3347 | + arc_features |= ARC_NPS400; | |
3348 | + | |
3344 | 3349 | case OPTION_USER_MODE: |
3345 | 3350 | case OPTION_LD_EXT_MASK: |
3346 | 3351 | case OPTION_SWAP: |
@@ -3396,6 +3401,18 @@ md_show_usage (FILE *stream) | ||
3396 | 3401 | fprintf (stream, _("ARC-specific assembler options:\n")); |
3397 | 3402 | |
3398 | 3403 | fprintf (stream, " -mcpu=<cpu name>\t assemble for CPU <cpu name>\n"); |
3404 | + fprintf (stream, " -mcpu=nps400\t\t same as -mcpu=arc700 -mnps400\n"); | |
3405 | + fprintf (stream, " -mA6/-mARC600/-mARC601 same as -mcpu=arc600\n"); | |
3406 | + fprintf (stream, " -mA7/-mARC700\t\t same as -mcpu=arc700\n"); | |
3407 | + fprintf (stream, " -mEM\t\t\t same as -mcpu=arcem\n"); | |
3408 | + fprintf (stream, " -mHS\t\t\t same as -mcpu=archs\n"); | |
3409 | + | |
3410 | + fprintf (stream, " -mnps400\t\t enable NPS-400 extended instructions\n"); | |
3411 | + fprintf (stream, " -mspfp\t\t enable single-precision floating point instructions\n"); | |
3412 | + fprintf (stream, " -mdpfp\t\t enable double-precision floating point instructions\n"); | |
3413 | + fprintf (stream, " -mfpuda\t\t enable double-precision assist floating " | |
3414 | + "point\n\t\t\t instructions for ARC EM\n"); | |
3415 | + | |
3399 | 3416 | fprintf (stream, |
3400 | 3417 | " -mcode-density\t enable code density option for ARC EM\n"); |
3401 | 3418 |
@@ -3404,8 +3421,36 @@ md_show_usage (FILE *stream) | ||
3404 | 3421 | fprintf (stream, _("\ |
3405 | 3422 | -EL assemble code for a little-endian cpu\n")); |
3406 | 3423 | fprintf (stream, _("\ |
3407 | - -mrelax Enable relaxation\n")); | |
3408 | - | |
3424 | + -mrelax enable relaxation\n")); | |
3425 | + | |
3426 | + fprintf (stream, _("The following ARC-specific assembler options are " | |
3427 | + "deprecated and are accepted\nfor compatibility only:\n")); | |
3428 | + | |
3429 | + fprintf (stream, _(" -mEA\n" | |
3430 | + " -mbarrel-shifter\n" | |
3431 | + " -mbarrel_shifter\n" | |
3432 | + " -mcrc\n" | |
3433 | + " -mdsp-packa\n" | |
3434 | + " -mdsp_packa\n" | |
3435 | + " -mdvbf\n" | |
3436 | + " -mld-extension-reg-mask\n" | |
3437 | + " -mlock\n" | |
3438 | + " -mmac-24\n" | |
3439 | + " -mmac-d16\n" | |
3440 | + " -mmac_24\n" | |
3441 | + " -mmac_d16\n" | |
3442 | + " -mmin-max\n" | |
3443 | + " -mmin_max\n" | |
3444 | + " -mmul64\n" | |
3445 | + " -mno-mpy\n" | |
3446 | + " -mnorm\n" | |
3447 | + " -mrtsc\n" | |
3448 | + " -msimd\n" | |
3449 | + " -mswap\n" | |
3450 | + " -mswape\n" | |
3451 | + " -mtelephony\n" | |
3452 | + " -muser-mode-only\n" | |
3453 | + " -mxy\n")); | |
3409 | 3454 | } |
3410 | 3455 | |
3411 | 3456 | /* Find the proper relocation for the given opcode. */ |
@@ -4070,7 +4115,6 @@ check_zol (symbolS *s) | ||
4070 | 4115 | end of the ZOL label @%s"), S_GET_NAME (s)); |
4071 | 4116 | |
4072 | 4117 | /* Fall through. */ |
4073 | - case bfd_mach_arc_nps400: | |
4074 | 4118 | case bfd_mach_arc_arc700: |
4075 | 4119 | if (arc_last_insns[0].has_delay_slot) |
4076 | 4120 | as_bad (_("An illegal use of delay slot detected at the end of the ZOL label @%s"), |
@@ -2680,7 +2680,7 @@ do include file processing with the @code{.include} directive | ||
2680 | 2680 | (@pxref{Include,,@code{.include}}). You can use the @sc{gnu} C compiler driver |
2681 | 2681 | to get other ``CPP'' style preprocessing by giving the input file a |
2682 | 2682 | @samp{.S} suffix. @xref{Overall Options, ,Options Controlling the Kind of |
2683 | -Output, gcc.info, Using GNU CC}. | |
2683 | +Output, gcc.info, Using GNU CC} . | |
2684 | 2684 | |
2685 | 2685 | Excess whitespace, comments, and character constants |
2686 | 2686 | cannot be used in the portions of the input text that are not |
@@ -56,9 +56,6 @@ Assemble for ARC 601. Alias: @code{-mARC601}. | ||
56 | 56 | @cindex @code{mARC700} command line option, ARC |
57 | 57 | Assemble for ARC 700. Aliases: @code{-mA7}, @code{-mARC700}. |
58 | 58 | |
59 | -@item nps400 | |
60 | -Assemble for NPS400. | |
61 | - | |
62 | 59 | @item arcem |
63 | 60 | @cindex @code{mEM} command line option, ARC |
64 | 61 | Assemble for ARC EM. Aliases: @code{-mEM} |
@@ -67,6 +64,10 @@ Assemble for ARC EM. Aliases: @code{-mEM} | ||
67 | 64 | @cindex @code{mHS} command line option, ARC |
68 | 65 | Assemble for ARC HS. Aliases: @code{-mHS}, @code{-mav2hs}. |
69 | 66 | |
67 | +@item nps400 | |
68 | +@cindex @code{mnps400} command line option, ARC | |
69 | +Assemble for ARC 700 with NPS-400 extended instructions. | |
70 | + | |
70 | 71 | @end table |
71 | 72 | |
72 | 73 | Note: the @code{.cpu} directive (@pxref{ARC Directives}) can |
@@ -94,6 +95,23 @@ Enable support for assembly-time relaxation. The assembler will | ||
94 | 95 | replace a longer version of an instruction with a shorter one, |
95 | 96 | whenever it is possible. |
96 | 97 | |
98 | +@cindex @code{-mnps400} command line option, ARC | |
99 | +@item -mnps400 | |
100 | +Enable support for NPS-400 extended instructions. | |
101 | + | |
102 | +@cindex @code{-mspfp} command line option, ARC | |
103 | +@item -mspfp | |
104 | +Enable support for single-precision floating point instructions. | |
105 | + | |
106 | +@cindex @code{-mdpfp} command line option, ARC | |
107 | +@item -mdpfp | |
108 | +Enable support for double-precision floating point instructions. | |
109 | + | |
110 | +@cindex @code{-mfpuda} command line option, ARC | |
111 | +@item -mfpuda | |
112 | +Enable support for double-precision assist floating point instructions. | |
113 | +Only valid for ARC EM processors. | |
114 | + | |
97 | 115 | @end table |
98 | 116 | |
99 | 117 | @node ARC Syntax |
@@ -11,5 +11,5 @@ | ||
11 | 11 | Machine: ARCompact |
12 | 12 | Version: 0x1 |
13 | 13 | #... |
14 | - Flags: 0x307, NPS400, v3 no-legacy-syscalls ABI | |
15 | -#... | |
\ No newline at end of file | ||
14 | + Flags: 0x303, ARC700, v3 no-legacy-syscalls ABI | |
15 | +#... |
@@ -1,4 +1,4 @@ | ||
1 | -#as: -mcpu=nps400 | |
1 | +#as: -mcpu=arc700 -mnps400 | |
2 | 2 | #objdump: -dr |
3 | 3 | |
4 | 4 | .*: +file format .*arc.* |
@@ -1,4 +1,4 @@ | ||
1 | -#as: -mcpu=nps400 | |
1 | +#as: -mcpu=arc700 -mnps400 | |
2 | 2 | #objdump: -dr |
3 | 3 | |
4 | 4 | .*: +file format .*arc.* |
@@ -1,4 +1,4 @@ | ||
1 | -#as: -mcpu=nps400 | |
1 | +#as: -mcpu=arc700 -mnps400 | |
2 | 2 | #objdump: -dr |
3 | 3 | |
4 | 4 | .*: +file format .*arc.* |
@@ -1,4 +1,4 @@ | ||
1 | -#as: -mcpu=nps400 | |
1 | +#as: -mcpu=arc700 -mnps400 | |
2 | 2 | #objdump: -dr |
3 | 3 | |
4 | 4 | .*: +file format .*arc.* |
@@ -1,4 +1,4 @@ | ||
1 | -#as: -mcpu=nps400 | |
1 | +#as: -mcpu=arc700 -mnps400 | |
2 | 2 | #objdump: -dr |
3 | 3 | |
4 | 4 | .*: +file format .*arc.* |
@@ -1,4 +1,4 @@ | ||
1 | -#as: -mcpu=nps400 | |
1 | +#as: -mcpu=arc700 -mnps400 | |
2 | 2 | #objdump: -dr |
3 | 3 | |
4 | 4 | .*: +file format .*arc.* |
@@ -1,4 +1,4 @@ | ||
1 | -#as: -mcpu=nps400 | |
1 | +#as: -mcpu=arc700 -mnps400 | |
2 | 2 | #objdump: -dr |
3 | 3 | |
4 | 4 | .*: +file format .*arc.* |
@@ -6,22 +6,22 @@ | ||
6 | 6 | Disassembly of section .text: |
7 | 7 | |
8 | 8 | [0-9a-f]+ <.text>: |
9 | - 0: 382d 007e myinsn r0,r1 | |
10 | - 4: 3b2d 373e myinsn fp,sp | |
11 | - 8: 386d 003e myinsn r0,0 | |
12 | - c: 392d 0fbe ffff ffff myinsn r1,0xffffffff | |
13 | - 14: 3eed 7080 0000 0000 myinsn 0,r2 | |
14 | - 1c: 3c2d 0fbe 0000 00ff myinsn r4,0xff | |
15 | - 24: 3e2d 0fbe ffff ff00 myinsn r6,0xffffff00 | |
16 | - 2c: 382d 1fbe 0000 0100 myinsn r8,0x100 | |
17 | - 34: 392d 1fbe ffff feff myinsn r9,0xfffffeff | |
18 | - 3c: 3b2d 1fbe 4242 4242 myinsn r11,0x42424242 | |
19 | - 44: 382d 0fbe 0000 0000 myinsn r0,0 | |
9 | + 0: 3830 007e myinsn r0,r1 | |
10 | + 4: 3b30 373e myinsn fp,sp | |
11 | + 8: 3870 003e myinsn r0,0 | |
12 | + c: 3930 0fbe ffff ffff myinsn r1,0xffffffff | |
13 | + 14: 3ef0 7080 0000 0000 myinsn 0,r2 | |
14 | + 1c: 3c30 0fbe 0000 00ff myinsn r4,0xff | |
15 | + 24: 3e30 0fbe ffff ff00 myinsn r6,0xffffff00 | |
16 | + 2c: 3830 1fbe 0000 0100 myinsn r8,0x100 | |
17 | + 34: 3930 1fbe ffff feff myinsn r9,0xfffffeff | |
18 | + 3c: 3b30 1fbe 4242 4242 myinsn r11,0x42424242 | |
19 | + 44: 3830 0fbe 0000 0000 myinsn r0,0 | |
20 | 20 | 48: R_ARC_32_ME foo |
21 | - 4c: 382d 807e myinsn.f r0,r1 | |
22 | - 50: 3a6d 807e myinsn.f r2,0x1 | |
23 | - 54: 3eed f100 0000 0000 myinsn.f 0,r4 | |
24 | - 5c: 3d2d 8fbe 0000 0200 myinsn.f r5,0x200 | |
25 | - 64: 3eed f102 0000 0000 myinsn.ne.f 0,r4 | |
26 | - 6c: 3eed ff85 dead beef myinsn.c.f 0xdeadbeef,0xdeadbeef | |
27 | - 74: 3eed f0a6 dead beef myinsn.nc.f 0xdeadbeef,0x2 | |
21 | + 4c: 3830 807e myinsn.f r0,r1 | |
22 | + 50: 3a70 807e myinsn.f r2,0x1 | |
23 | + 54: 3ef0 f100 0000 0000 myinsn.f 0,r4 | |
24 | + 5c: 3d30 8fbe 0000 0200 myinsn.f r5,0x200 | |
25 | + 64: 3ef0 f102 0000 0000 myinsn.ne.f 0,r4 | |
26 | + 6c: 3ef0 ff85 dead beef myinsn.c.f 0xdeadbeef,0xdeadbeef | |
27 | + 74: 3ef0 f0a6 dead beef myinsn.nc.f 0xdeadbeef,0x2 |
@@ -1,5 +1,5 @@ | ||
1 | 1 | # Insn 2op .extInstruction test |
2 | - .extInstruction myinsn, 0x07, 0x2d, SUFFIX_FLAG|SUFFIX_COND, SYNTAX_2OP|OP1_IMM_IMPLIED | |
2 | + .extInstruction myinsn, 0x07, 0x30, SUFFIX_FLAG|SUFFIX_COND, SYNTAX_2OP|OP1_IMM_IMPLIED | |
3 | 3 | |
4 | 4 | myinsn r0,r1 |
5 | 5 | myinsn fp,sp |
@@ -6,58 +6,58 @@ | ||
6 | 6 | Disassembly of section .text: |
7 | 7 | |
8 | 8 | [0-9a-f]+ <.text>: |
9 | - 0: 392d 0080 myinsn r0,r1,r2 | |
10 | - 4: 3b2d 371a myinsn gp,fp,sp | |
11 | - 8: 3e2d 37dd myinsn ilink,r30,blink | |
12 | - c: 396d 0000 myinsn r0,r1,0 | |
13 | - 10: 3e2d 7080 0000 0000 myinsn r0,0,r2 | |
14 | - 18: 392d 00be myinsn 0,r1,r2 | |
15 | - 1c: 392d 0f80 ffff ffff myinsn r0,r1,0xffffffff | |
16 | - 24: 3e2d 7080 ffff ffff myinsn r0,0xffffffff,r2 | |
17 | - 2c: 392d 0f80 0000 00ff myinsn r0,r1,0xff | |
18 | - 34: 3e2d 7080 0000 00ff myinsn r0,0xff,r2 | |
19 | - 3c: 392d 0f80 ffff ff00 myinsn r0,r1,0xffffff00 | |
20 | - 44: 3e2d 7080 ffff ff00 myinsn r0,0xffffff00,r2 | |
21 | - 4c: 392d 0f80 0000 0100 myinsn r0,r1,0x100 | |
22 | - 54: 3e2d 7080 ffff feff myinsn r0,0xfffffeff,r2 | |
23 | - 5c: 3e2d 7f80 0000 0100 myinsn r0,0x100,0x100 | |
24 | - 64: 392d 0f80 0000 0000 myinsn r0,r1,0 | |
9 | + 0: 3930 0080 myinsn r0,r1,r2 | |
10 | + 4: 3b30 371a myinsn gp,fp,sp | |
11 | + 8: 3e30 37dd myinsn ilink,r30,blink | |
12 | + c: 3970 0000 myinsn r0,r1,0 | |
13 | + 10: 3e30 7080 0000 0000 myinsn r0,0,r2 | |
14 | + 18: 3930 00be myinsn 0,r1,r2 | |
15 | + 1c: 3930 0f80 ffff ffff myinsn r0,r1,0xffffffff | |
16 | + 24: 3e30 7080 ffff ffff myinsn r0,0xffffffff,r2 | |
17 | + 2c: 3930 0f80 0000 00ff myinsn r0,r1,0xff | |
18 | + 34: 3e30 7080 0000 00ff myinsn r0,0xff,r2 | |
19 | + 3c: 3930 0f80 ffff ff00 myinsn r0,r1,0xffffff00 | |
20 | + 44: 3e30 7080 ffff ff00 myinsn r0,0xffffff00,r2 | |
21 | + 4c: 3930 0f80 0000 0100 myinsn r0,r1,0x100 | |
22 | + 54: 3e30 7080 ffff feff myinsn r0,0xfffffeff,r2 | |
23 | + 5c: 3e30 7f80 0000 0100 myinsn r0,0x100,0x100 | |
24 | + 64: 3930 0f80 0000 0000 myinsn r0,r1,0 | |
25 | 25 | 68: R_ARC_32_ME foo |
26 | - 6c: 38ed 0080 myinsn r0,r0,r2 | |
27 | - 70: 3bed 0140 myinsn r3,r3,r5 | |
28 | - 74: 3eed 0201 myinsn.eq r6,r6,r8 | |
29 | - 78: 39ed 12c1 myinsn.eq r9,r9,r11 | |
30 | - 7c: 3ced 1382 myinsn.ne r12,r12,r14 | |
31 | - 80: 3fed 1442 myinsn.ne r15,r15,r17 | |
32 | - 84: 3aed 2503 myinsn.p r18,r18,r20 | |
33 | - 88: 3ded 25c3 myinsn.p r21,r21,r23 | |
34 | - 8c: 38ed 3684 myinsn.n r24,r24,gp | |
35 | - 90: 3bed 3744 myinsn.n fp,fp,ilink | |
36 | - 94: 3eed 37c5 myinsn.c r30,r30,blink | |
37 | - 98: 3bed 00c5 myinsn.c r3,r3,r3 | |
38 | - 9c: 3bed 0205 myinsn.c r3,r3,r8 | |
39 | - a0: 3bed 0106 myinsn.nc r3,r3,r4 | |
40 | - a4: 3ced 0106 myinsn.nc r4,r4,r4 | |
41 | - a8: 3ced 01c6 myinsn.nc r4,r4,r7 | |
42 | - ac: 3ced 0147 myinsn.v r4,r4,r5 | |
43 | - b0: 3ded 0147 myinsn.v r5,r5,r5 | |
44 | - b4: 3ded 0148 myinsn.nv r5,r5,r5 | |
45 | - b8: 3ded 0148 myinsn.nv r5,r5,r5 | |
46 | - bc: 3eed 0009 myinsn.gt r6,r6,r0 | |
47 | - c0: 38ed 002a myinsn.ge r0,r0,0 | |
48 | - c4: 39ed 006b myinsn.lt r1,r1,0x1 | |
49 | - c8: 3bed 00ed myinsn.hi r3,r3,0x3 | |
50 | - cc: 3ced 012e myinsn.ls r4,r4,0x4 | |
51 | - d0: 3ded 016f myinsn.pnz r5,r5,0x5 | |
52 | - d4: 392d 8080 myinsn.f r0,r1,r2 | |
53 | - d8: 396d 8040 myinsn.f r0,r1,0x1 | |
54 | - dc: 3e2d f080 0000 0001 myinsn.f r0,0x1,r2 | |
55 | - e4: 392d 80be myinsn.f 0,r1,r2 | |
56 | - e8: 392d 8f80 0000 0200 myinsn.f r0,r1,0x200 | |
57 | - f0: 3e2d f080 0000 0200 myinsn.f r0,0x200,r2 | |
58 | - f8: 39ed 8081 myinsn.eq.f r1,r1,r2 | |
59 | - fc: 38ed 8022 myinsn.ne.f r0,r0,0 | |
60 | - 100: 3aed 808b myinsn.lt.f r2,r2,r2 | |
61 | - 104: 3eed f0a9 0000 0001 myinsn.gt.f 0,0x1,0x2 | |
62 | - 10c: 3eed ff8c 0000 0200 myinsn.le.f 0,0x200,0x200 | |
63 | - 114: 3eed f0aa 0000 0200 myinsn.ge.f 0,0x200,0x2 | |
26 | + 6c: 38f0 0080 myinsn r0,r0,r2 | |
27 | + 70: 3bf0 0140 myinsn r3,r3,r5 | |
28 | + 74: 3ef0 0201 myinsn.eq r6,r6,r8 | |
29 | + 78: 39f0 12c1 myinsn.eq r9,r9,r11 | |
30 | + 7c: 3cf0 1382 myinsn.ne r12,r12,r14 | |
31 | + 80: 3ff0 1442 myinsn.ne r15,r15,r17 | |
32 | + 84: 3af0 2503 myinsn.p r18,r18,r20 | |
33 | + 88: 3df0 25c3 myinsn.p r21,r21,r23 | |
34 | + 8c: 38f0 3684 myinsn.n r24,r24,gp | |
35 | + 90: 3bf0 3744 myinsn.n fp,fp,ilink | |
36 | + 94: 3ef0 37c5 myinsn.c r30,r30,blink | |
37 | + 98: 3bf0 00c5 myinsn.c r3,r3,r3 | |
38 | + 9c: 3bf0 0205 myinsn.c r3,r3,r8 | |
39 | + a0: 3bf0 0106 myinsn.nc r3,r3,r4 | |
40 | + a4: 3cf0 0106 myinsn.nc r4,r4,r4 | |
41 | + a8: 3cf0 01c6 myinsn.nc r4,r4,r7 | |
42 | + ac: 3cf0 0147 myinsn.v r4,r4,r5 | |
43 | + b0: 3df0 0147 myinsn.v r5,r5,r5 | |
44 | + b4: 3df0 0148 myinsn.nv r5,r5,r5 | |
45 | + b8: 3df0 0148 myinsn.nv r5,r5,r5 | |
46 | + bc: 3ef0 0009 myinsn.gt r6,r6,r0 | |
47 | + c0: 38f0 002a myinsn.ge r0,r0,0 | |
48 | + c4: 39f0 006b myinsn.lt r1,r1,0x1 | |
49 | + c8: 3bf0 00ed myinsn.hi r3,r3,0x3 | |
50 | + cc: 3cf0 012e myinsn.ls r4,r4,0x4 | |
51 | + d0: 3df0 016f myinsn.pnz r5,r5,0x5 | |
52 | + d4: 3930 8080 myinsn.f r0,r1,r2 | |
53 | + d8: 3970 8040 myinsn.f r0,r1,0x1 | |
54 | + dc: 3e30 f080 0000 0001 myinsn.f r0,0x1,r2 | |
55 | + e4: 3930 80be myinsn.f 0,r1,r2 | |
56 | + e8: 3930 8f80 0000 0200 myinsn.f r0,r1,0x200 | |
57 | + f0: 3e30 f080 0000 0200 myinsn.f r0,0x200,r2 | |
58 | + f8: 39f0 8081 myinsn.eq.f r1,r1,r2 | |
59 | + fc: 38f0 8022 myinsn.ne.f r0,r0,0 | |
60 | + 100: 3af0 808b myinsn.lt.f r2,r2,r2 | |
61 | + 104: 3ef0 f0a9 0000 0001 myinsn.gt.f 0,0x1,0x2 | |
62 | + 10c: 3ef0 ff8c 0000 0200 myinsn.le.f 0,0x200,0x200 | |
63 | + 114: 3ef0 f0aa 0000 0200 myinsn.ge.f 0,0x200,0x2 |
@@ -1,5 +1,5 @@ | ||
1 | 1 | # Insn 3op .extInstruction test |
2 | - .extInstruction myinsn, 0x07, 0x2d, SUFFIX_FLAG|SUFFIX_COND, SYNTAX_3OP | |
2 | + .extInstruction myinsn, 0x07, 0x30, SUFFIX_FLAG|SUFFIX_COND, SYNTAX_3OP | |
3 | 3 | |
4 | 4 | myinsn r0,r1,r2 |
5 | 5 | myinsn r26,fp,sp |
@@ -1,3 +1,10 @@ | ||
1 | +2016-06-21 Graham Markall <graham.markall@embecosm.com> | |
2 | + | |
3 | + * opcode/arc.h: Add nps400 extension and instruction | |
4 | + subclass. | |
5 | + Remove ARC_OPCODE_NPS400 | |
6 | + * elf/arc.h: Remove E_ARC_MACH_NPS400 | |
7 | + | |
1 | 8 | 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
2 | 9 | |
3 | 10 | * opcode/sparc.h (enum sparc_opcode_arch_val): Add |
@@ -48,7 +48,6 @@ END_RELOC_NUMBERS (R_ARC_max) | ||
48 | 48 | #define E_ARC_MACH_ARC600 0x00000002 |
49 | 49 | #define E_ARC_MACH_ARC601 0x00000004 |
50 | 50 | #define E_ARC_MACH_ARC700 0x00000003 |
51 | -#define E_ARC_MACH_NPS400 0x00000007 | |
52 | 51 | #define EF_ARC_CPU_ARCV2EM 0x00000005 |
53 | 52 | #define EF_ARC_CPU_ARCV2HS 0x00000006 |
54 | 53 |
@@ -70,6 +70,7 @@ typedef enum | ||
70 | 70 | MPY7E, |
71 | 71 | MPY8E, |
72 | 72 | MPY9E, |
73 | + NPS400, | |
73 | 74 | QUARKSE, |
74 | 75 | SHFT1, |
75 | 76 | SHFT2, |
@@ -172,7 +173,6 @@ extern const struct arc_opcode arc_opcodes[]; | ||
172 | 173 | #define ARC_OPCODE_ARC700 0x0002 /* ARC 700 specific insns. */ |
173 | 174 | #define ARC_OPCODE_ARCv2EM 0x0004 /* ARCv2 EM specific insns. */ |
174 | 175 | #define ARC_OPCODE_ARCv2HS 0x0008 /* ARCv2 HS specific insns. */ |
175 | -#define ARC_OPCODE_NPS400 0x0010 /* NPS400 specific insns. */ | |
176 | 176 | |
177 | 177 | /* CPU combi. */ |
178 | 178 | #define ARC_OPCODE_ARCALL (ARC_OPCODE_ARC600 | ARC_OPCODE_ARC700 \ |
@@ -186,6 +186,7 @@ extern const struct arc_opcode arc_opcodes[]; | ||
186 | 186 | #define ARC_ATOMIC 0x0002 /* Mutual exclusive with LLOCK. */ |
187 | 187 | #define ARC_MPY 0x0004 |
188 | 188 | #define ARC_MULT 0x0004 |
189 | +#define ARC_NPS400 0x0008 | |
189 | 190 | |
190 | 191 | /* Floating point support. */ |
191 | 192 | #define ARC_DPFP 0x0010 |
@@ -1,3 +1,8 @@ | ||
1 | +2016-06-21 Graham Markall <graham.markall@embecosm.com> | |
2 | + | |
3 | + * testsuite/ld-arc/nps-1a.d: Use -mcpu=arc700 -mnps400. | |
4 | + * testsuite/ld-arc/nps-1b.d: Likewise. | |
5 | + | |
1 | 6 | 2016-06-20 H.J. Lu <hongjiu.lu@intel.com> |
2 | 7 | |
3 | 8 | PR ld/20267 |
@@ -1,5 +1,5 @@ | ||
1 | 1 | #source: nps-1.s |
2 | -#as: -mcpu=nps400 | |
2 | +#as: -mcpu=arc700 -mnps400 | |
3 | 3 | #ld: -defsym=foo=0x57f03000 |
4 | 4 | #objdump: -d |
5 | 5 |
@@ -1,4 +1,4 @@ | ||
1 | 1 | #source: nps-1.s |
2 | -#as: -mcpu=nps400 | |
2 | +#as: -mcpu=arc700 -mnps400 | |
3 | 3 | #ld: -defsym=foo=0x56f03000 |
4 | 4 | #error_output: nps-1b.err |
@@ -1,3 +1,13 @@ | ||
1 | +2016-06-21 Graham Markall <graham.markall@embecosm.com> | |
2 | + | |
3 | + * arc-dis.c (arc_insn_length): Add comment on instruction length. | |
4 | + Use same method for determining instruction length on ARC700 and | |
5 | + NPS-400. | |
6 | + (arc_insn_length, print_insn_arc): Remove bfd_mach_arc_nps400. | |
7 | + * arc-nps400-tbl.h: Make all nps400 instructions ARC700 instructions | |
8 | + with the NPS400 subclass. | |
9 | + * arc-opc.c: Likewise. | |
10 | + | |
1 | 11 | 2016-06-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
2 | 12 | |
3 | 13 | * sparc-opc.c (rdasr): New macro. |
@@ -557,7 +557,12 @@ arc_insn_length (bfd_byte msb, bfd_byte lsb, struct disassemble_info *info) | ||
557 | 557 | |
558 | 558 | switch (info->mach) |
559 | 559 | { |
560 | - case bfd_mach_arc_nps400: | |
560 | + case bfd_mach_arc_arc700: | |
561 | + /* The nps400 extension set requires this special casing of the | |
562 | + instruction length calculation. Right now this is not causing any | |
563 | + problems as none of the known extensions overlap in opcode space, | |
564 | + but, if they ever do then we might need to start carrying | |
565 | + information around in the elf about which extensions are in use. */ | |
561 | 566 | if (major_opcode == 0xb) |
562 | 567 | { |
563 | 568 | bfd_byte minor_opcode = lsb & 0x1f; |
@@ -565,7 +570,6 @@ arc_insn_length (bfd_byte msb, bfd_byte lsb, struct disassemble_info *info) | ||
565 | 570 | if (minor_opcode < 4) |
566 | 571 | return 2; |
567 | 572 | } |
568 | - case bfd_mach_arc_arc700: | |
569 | 573 | case bfd_mach_arc_arc600: |
570 | 574 | return (major_opcode > 0xb) ? 2 : 4; |
571 | 575 | break; |
@@ -719,10 +723,6 @@ print_insn_arc (bfd_vma memaddr, | ||
719 | 723 | |
720 | 724 | switch (info->mach) |
721 | 725 | { |
722 | - case bfd_mach_arc_nps400: | |
723 | - isa_mask = ARC_OPCODE_ARC700 | ARC_OPCODE_NPS400; | |
724 | - break; | |
725 | - | |
726 | 726 | case bfd_mach_arc_arc700: |
727 | 727 | isa_mask = ARC_OPCODE_ARC700; |
728 | 728 | break; |
@@ -1,38 +1,38 @@ | ||
1 | 1 | /**** Bit Manipulation Instructions ****/ |
2 | 2 | |
3 | 3 | /* movl<.cl> */ |
4 | -{ "movh", 0x48080000, 0xf81f0000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST, NPS_R_SRC1, NPS_UIMM16 }, { 0 }}, | |
5 | -{ "movh", 0x48180000, 0xf81f0000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST, NPS_UIMM16 }, { C_NPS_CL }}, | |
4 | +{ "movh", 0x48080000, 0xf81f0000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST, NPS_R_SRC1, NPS_UIMM16 }, { 0 }}, | |
5 | +{ "movh", 0x48180000, 0xf81f0000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST, NPS_UIMM16 }, { C_NPS_CL }}, | |
6 | 6 | |
7 | 7 | /* movl<.cl> */ |
8 | -{ "movl", 0x48090000, 0xf81f0000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST, NPS_R_SRC1, NPS_UIMM16 }, { 0 }}, | |
9 | -{ "movl", 0x48190000, 0xf81f0000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST, NPS_UIMM16 }, { C_NPS_CL }}, | |
8 | +{ "movl", 0x48090000, 0xf81f0000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST, NPS_R_SRC1, NPS_UIMM16 }, { 0 }}, | |
9 | +{ "movl", 0x48190000, 0xf81f0000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST, NPS_UIMM16 }, { C_NPS_CL }}, | |
10 | 10 | |
11 | 11 | /* movb<.f><.cl> */ |
12 | -{ "movb", 0x48010000, 0xf80f8000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BITOP_DST_POS, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
13 | -{ "movb", 0x48018000, 0xf80f8000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BITOP_DST_POS, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F, C_NPS_CL }}, | |
12 | +{ "movb", 0x48010000, 0xf80f8000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BITOP_DST_POS, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
13 | +{ "movb", 0x48018000, 0xf80f8000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BITOP_DST_POS, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F, C_NPS_CL }}, | |
14 | 14 | |
15 | 15 | /* movbi<.f><.cl> */ |
16 | -{ "movbi", 0x480f0000, 0xf80f8000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST, NPS_R_SRC1, NPS_BITOP_UIMM8, NPS_BITOP_DST_POS, NPS_BITOP_SIZE_2B }, { C_NPS_F }}, | |
17 | -{ "movbi", 0x480f8000, 0xf80f8000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST, NPS_BITOP_UIMM8, NPS_BITOP_DST_POS, NPS_BITOP_SIZE_2B }, { C_NPS_F, C_NPS_CL }}, | |
16 | +{ "movbi", 0x480f0000, 0xf80f8000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST, NPS_R_SRC1, NPS_BITOP_UIMM8, NPS_BITOP_DST_POS, NPS_BITOP_SIZE_2B }, { C_NPS_F }}, | |
17 | +{ "movbi", 0x480f8000, 0xf80f8000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST, NPS_BITOP_UIMM8, NPS_BITOP_DST_POS, NPS_BITOP_SIZE_2B }, { C_NPS_F, C_NPS_CL }}, | |
18 | 18 | |
19 | 19 | /* decode1<.f> */ |
20 | -{ "decode1", 0x48038040, 0xf80f83e0, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
20 | +{ "decode1", 0x48038040, 0xf80f83e0, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
21 | 21 | |
22 | 22 | /* decode1.cl<.f> */ |
23 | -{ "decode1", 0x48038060, 0xf80803e0, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BITOP_DST_POS_SZ }, { C_NPS_CL, C_NPS_F }}, | |
23 | +{ "decode1", 0x48038060, 0xf80803e0, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BITOP_DST_POS_SZ }, { C_NPS_CL, C_NPS_F }}, | |
24 | 24 | |
25 | 25 | /* fbset<.f> */ |
26 | -{ "fbset", 0x48038000, 0xf80f83e0, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
26 | +{ "fbset", 0x48038000, 0xf80f83e0, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
27 | 27 | |
28 | 28 | /* fbclr<.f> */ |
29 | -{ "fbclr", 0x48030000, 0xf80f83e0, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
29 | +{ "fbclr", 0x48030000, 0xf80f83e0, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
30 | 30 | |
31 | 31 | /* encode0<.f> */ |
32 | -{ "encode0", 0x48040000, 0xf80f8000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
32 | +{ "encode0", 0x48040000, 0xf80f8000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
33 | 33 | |
34 | 34 | /* encode1<.f> */ |
35 | -{ "encode1", 0x48048000, 0xf80f8000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
35 | +{ "encode1", 0x48048000, 0xf80f8000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BITOP_SRC_POS, NPS_BITOP_SIZE }, { C_NPS_F }}, | |
36 | 36 | |
37 | 37 | /* mrgb - 48 bit instruction, see arc_long_opcodes in arc-opc.c. */ |
38 | 38 | /* mrgb.cl - 48 bit instruction, see arc_long_opcodes in arc-opc.c. */ |
@@ -50,108 +50,108 @@ | ||
50 | 50 | /* mov4b.cl - 64 bit instruction, see arc_long_opcodes in arc-opc.c. */ |
51 | 51 | |
52 | 52 | /* rflt a,b,c 00111bbb00101110FBBBCCCCCCAAAAAA */ |
53 | -{ "rflt", 0x382e0000, 0xf8ff8000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, RC }, { 0 }}, | |
53 | +{ "rflt", 0x382e0000, 0xf8ff8000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, RC }, { 0 }}, | |
54 | 54 | |
55 | 55 | /* rflt a,limm,c 0011111000101110F111CCCCCCAAAAAA */ |
56 | -{ "rflt", 0x3e2e7000, 0xfffff000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, RC }, { 0 }}, | |
56 | +{ "rflt", 0x3e2e7000, 0xfffff000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, RC }, { 0 }}, | |
57 | 57 | |
58 | 58 | /* rflt a,b,u6 00111bbb01101110FBBBuuuuuuAAAAAA */ |
59 | -{ "rflt", 0x386e0000, 0xf8ff8000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, NPS_RFLT_UIMM6 }, { 0 }}, | |
59 | +{ "rflt", 0x386e0000, 0xf8ff8000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, NPS_RFLT_UIMM6 }, { 0 }}, | |
60 | 60 | |
61 | 61 | /* rflt 0,b,c 00111bbb00101110FBBBCCCCCC111110 */ |
62 | -{ "rflt", 0x382e003e, 0xf8ff803f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, RC }, { 0 }}, | |
62 | +{ "rflt", 0x382e003e, 0xf8ff803f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, RC }, { 0 }}, | |
63 | 63 | |
64 | 64 | /* rflt 0,limm,c 0011111000101110F111CCCCCC111110 */ |
65 | -{ "rflt", 0x3e2e703e, 0xfffff03f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, RC }, { 0 }}, | |
65 | +{ "rflt", 0x3e2e703e, 0xfffff03f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, LIMM, RC }, { 0 }}, | |
66 | 66 | |
67 | 67 | /* rflt 0,b,u6 00111bbb01101110FBBBuuuuuu111110 */ |
68 | -{ "rflt", 0x386e003e, 0xf8ff803f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, NPS_RFLT_UIMM6 }, { 0 }}, | |
68 | +{ "rflt", 0x386e003e, 0xf8ff803f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, NPS_RFLT_UIMM6 }, { 0 }}, | |
69 | 69 | |
70 | 70 | /* rflt 0,b,limm 00111bbb00101110FBBB111110111110 */ |
71 | -{ "rflt", 0x382e0fbe, 0xf8ff8fff, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, LIMM }, { 0 }}, | |
71 | +{ "rflt", 0x382e0fbe, 0xf8ff8fff, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, LIMM }, { 0 }}, | |
72 | 72 | |
73 | 73 | /* rflt a,b,limm 00111bbb00101110FBBB111110AAAAAA */ |
74 | -{ "rflt", 0x382e0f80, 0xf8ff8fc0, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, LIMM }, { 0 }}, | |
74 | +{ "rflt", 0x382e0f80, 0xf8ff8fc0, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, LIMM }, { 0 }}, | |
75 | 75 | |
76 | 76 | /* rflt a,limm,limm 0011111000101110F111111110AAAAAA */ |
77 | -{ "rflt", 0x3e2e7f80, 0xffffffc0, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, LIMMdup }, { 0 }}, | |
77 | +{ "rflt", 0x3e2e7f80, 0xffffffc0, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, LIMMdup }, { 0 }}, | |
78 | 78 | |
79 | 79 | /* rflt a,limm,u6 0011111001101110F111uuuuuuAAAAAA */ |
80 | -{ "rflt", 0x3e6e7000, 0xfffff000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, NPS_RFLT_UIMM6 }, { 0 }}, | |
80 | +{ "rflt", 0x3e6e7000, 0xfffff000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, NPS_RFLT_UIMM6 }, { 0 }}, | |
81 | 81 | |
82 | 82 | /* rflt 0,limm,u6 0011111001101110F111uuuuuu111110 */ |
83 | -{ "rflt", 0x3e6e703e, 0xfffff03f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, NPS_RFLT_UIMM6 }, { 0 }}, | |
83 | +{ "rflt", 0x3e6e703e, 0xfffff03f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, LIMM, NPS_RFLT_UIMM6 }, { 0 }}, | |
84 | 84 | |
85 | 85 | /* crc16<.r> a,b,c 00111bbb00110011RBBBCCCCCCAAAAAA */ |
86 | -{ "crc16", 0x38330000, 0xf8ff0000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, RC }, { C_NPS_R }}, | |
86 | +{ "crc16", 0x38330000, 0xf8ff0000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, RC }, { C_NPS_R }}, | |
87 | 87 | |
88 | 88 | /* crc16<.r> a,limm,c 0011111000110011R111CCCCCCAAAAAA */ |
89 | -{ "crc16", 0x3e337000, 0xffff7000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, RC }, { C_NPS_R }}, | |
89 | +{ "crc16", 0x3e337000, 0xffff7000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, RC }, { C_NPS_R }}, | |
90 | 90 | |
91 | 91 | /* crc16<.r> a,b,u6 00111bbb01110011RBBBuuuuuuAAAAAA */ |
92 | -{ "crc16", 0x38730000, 0xf8ff0000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, UIMM6_20 }, { C_NPS_R }}, | |
92 | +{ "crc16", 0x38730000, 0xf8ff0000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, UIMM6_20 }, { C_NPS_R }}, | |
93 | 93 | |
94 | 94 | /* crc16<.r> 0,b,c 00111bbb00110011RBBBCCCCCC111110 */ |
95 | -{ "crc16", 0x3833003e, 0xf8ff003f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, RC }, { C_NPS_R }}, | |
95 | +{ "crc16", 0x3833003e, 0xf8ff003f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, RC }, { C_NPS_R }}, | |
96 | 96 | |
97 | 97 | /* crc16<.r> 0,limm,c 0011111000110011R111CCCCCC111110 */ |
98 | -{ "crc16", 0x3e33703e, 0xffff703f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, RC }, { C_NPS_R }}, | |
98 | +{ "crc16", 0x3e33703e, 0xffff703f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, LIMM, RC }, { C_NPS_R }}, | |
99 | 99 | |
100 | 100 | /* crc16<.r> 0,b,u6 00111bbb01110011RBBBuuuuuu111110 */ |
101 | -{ "crc16", 0x3873003e, 0xf8ff003f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, UIMM6_20 }, { C_NPS_R }}, | |
101 | +{ "crc16", 0x3873003e, 0xf8ff003f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, UIMM6_20 }, { C_NPS_R }}, | |
102 | 102 | |
103 | 103 | /* crc16<.r> 0,b,limm 00111bbb00110011RBBB111110111110 */ |
104 | -{ "crc16", 0x38330fbe, 0xf8ff0fff, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, LIMM }, { C_NPS_R }}, | |
104 | +{ "crc16", 0x38330fbe, 0xf8ff0fff, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, LIMM }, { C_NPS_R }}, | |
105 | 105 | |
106 | 106 | /* crc16<.r> a,b,limm 00111bbb00110011RBBB111110AAAAAA */ |
107 | -{ "crc16", 0x38330f80, 0xf8ff0fc0, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, LIMM }, { C_NPS_R }}, | |
107 | +{ "crc16", 0x38330f80, 0xf8ff0fc0, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, LIMM }, { C_NPS_R }}, | |
108 | 108 | |
109 | 109 | /* crc16<.r> a,limm,limm 0011111000110011R111111110AAAAAA */ |
110 | -{ "crc16", 0x3e337f80, 0xffff7fc0, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, LIMMdup }, { C_NPS_R }}, | |
110 | +{ "crc16", 0x3e337f80, 0xffff7fc0, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, LIMMdup }, { C_NPS_R }}, | |
111 | 111 | |
112 | 112 | /* crc16<.r> a,limm,u6 0011111001110011R111uuuuuuAAAAAA */ |
113 | -{ "crc16", 0x3e737000, 0xffff7000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, UIMM6_20 }, { C_NPS_R }}, | |
113 | +{ "crc16", 0x3e737000, 0xffff7000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, UIMM6_20 }, { C_NPS_R }}, | |
114 | 114 | |
115 | 115 | /* crc16<.r> 0,limm,u6 0011111001110011R111uuuuuu111110 */ |
116 | -{ "crc16", 0x3e73703e, 0xffff703f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, UIMM6_20 }, { C_NPS_R }}, | |
116 | +{ "crc16", 0x3e73703e, 0xffff703f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, LIMM, UIMM6_20 }, { C_NPS_R }}, | |
117 | 117 | |
118 | 118 | /* crc32<.r> a,b,c 00111 bbb 00 110100 R BBB CCCCCC AAAAAA */ |
119 | -{ "crc32", 0x38340000, 0xf8ff0000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, RC }, { C_NPS_R }}, | |
119 | +{ "crc32", 0x38340000, 0xf8ff0000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, RC }, { C_NPS_R }}, | |
120 | 120 | |
121 | 121 | /* crc32<.r> a,limm,c 00111 110 00 110100 R 111 CCCCCC AAAAAA */ |
122 | -{ "crc32", 0x3e347000, 0xffff7000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, RC }, { C_NPS_R }}, | |
122 | +{ "crc32", 0x3e347000, 0xffff7000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, RC }, { C_NPS_R }}, | |
123 | 123 | |
124 | 124 | /* crc32<.r> a,b,u6 00111 bbb 01 110100 R BBB uuuuuu AAAAAA */ |
125 | -{ "crc32", 0x38740000, 0xf8ff0000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, UIMM6_20 }, { C_NPS_R }}, | |
125 | +{ "crc32", 0x38740000, 0xf8ff0000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, UIMM6_20 }, { C_NPS_R }}, | |
126 | 126 | |
127 | 127 | /* crc32<.r> 0,b,c 00111 bbb 00 110100 R BBB CCCCCC 111110 */ |
128 | -{ "crc32", 0x3834003e, 0xf8ff003f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, RC }, { C_NPS_R }}, | |
128 | +{ "crc32", 0x3834003e, 0xf8ff003f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, RC }, { C_NPS_R }}, | |
129 | 129 | |
130 | 130 | /* crc32<.r> 0,limm,c 00111 110 00 110100 R 111 CCCCCC 111110 */ |
131 | -{ "crc32", 0x3e34703e, 0xffff703f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, RC }, { C_NPS_R }}, | |
131 | +{ "crc32", 0x3e34703e, 0xffff703f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, LIMM, RC }, { C_NPS_R }}, | |
132 | 132 | |
133 | 133 | /* crc32<.r> 0,b,u6 00111 bbb 01 110100 R BBB uuuuuu 111110 */ |
134 | -{ "crc32", 0x3874003e, 0xf8ff003f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, UIMM6_20 }, { C_NPS_R }}, | |
134 | +{ "crc32", 0x3874003e, 0xf8ff003f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, UIMM6_20 }, { C_NPS_R }}, | |
135 | 135 | |
136 | 136 | /* crc32<.r> 0,b,limm 00111 bbb 00 110100 R BBB 111110 111110 */ |
137 | -{ "crc32", 0x38340fbe, 0xf8ff0fff, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, RB, LIMM }, { C_NPS_R }}, | |
137 | +{ "crc32", 0x38340fbe, 0xf8ff0fff, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, RB, LIMM }, { C_NPS_R }}, | |
138 | 138 | |
139 | 139 | /* crc32<.r> a,b,limm 00111 bbb 00 110100 R BBB 111110 AAAAAA */ |
140 | -{ "crc32", 0x38340f80, 0xf8ff0fc0, ARC_OPCODE_NPS400, BITOP, NONE, { RA, RB, LIMM }, { C_NPS_R }}, | |
140 | +{ "crc32", 0x38340f80, 0xf8ff0fc0, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, RB, LIMM }, { C_NPS_R }}, | |
141 | 141 | |
142 | 142 | /* crc32<.r> a,limm,limm 00111 110 00 110100 R 111 111110 AAAAAA */ |
143 | -{ "crc32", 0x3e347f80, 0xffff7fc0, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, LIMMdup }, { C_NPS_R }}, | |
143 | +{ "crc32", 0x3e347f80, 0xffff7fc0, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, LIMMdup }, { C_NPS_R }}, | |
144 | 144 | |
145 | 145 | /* crc32<.r> a,limm,u6 00111 110 01 110100 R 111 uuuuuu AAAAAA */ |
146 | -{ "crc32", 0x3e747000, 0xffff7000, ARC_OPCODE_NPS400, BITOP, NONE, { RA, LIMM, UIMM6_20 }, { C_NPS_R }}, | |
146 | +{ "crc32", 0x3e747000, 0xffff7000, ARC_OPCODE_ARC700, BITOP, NPS400, { RA, LIMM, UIMM6_20 }, { C_NPS_R }}, | |
147 | 147 | |
148 | 148 | /* crc32<.r> 0,limm,u6 00111 110 01 110100 R 111 uuuuuu 111110 */ |
149 | -{ "crc32", 0x3e74703e, 0xffff703f, ARC_OPCODE_NPS400, BITOP, NONE, { ZA, LIMM, UIMM6_20 }, { C_NPS_R }}, | |
149 | +{ "crc32", 0x3e74703e, 0xffff703f, ARC_OPCODE_ARC700, BITOP, NPS400, { ZA, LIMM, UIMM6_20 }, { C_NPS_R }}, | |
150 | 150 | |
151 | 151 | /**** Arithmetic & Logic Instructions ****/ |
152 | 152 | |
153 | 153 | #define ADDB_LIKE(NAME,SUBOP2) \ |
154 | - { NAME, (0x48000000 | SUBOP2), 0xf80f001f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC1_POS, NPS_SRC2_POS, NPS_ADDB_SIZE }, { C_NPS_F, C_NPS_SX }}, | |
154 | + { NAME, (0x48000000 | SUBOP2), 0xf80f001f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC1_POS, NPS_SRC2_POS, NPS_ADDB_SIZE }, { C_NPS_F, C_NPS_SX }}, | |
155 | 155 | |
156 | 156 | ADDB_LIKE ("addb", 0) |
157 | 157 | ADDB_LIKE ("subb", 4) |
@@ -159,7 +159,7 @@ ADDB_LIKE ("adcb", 5) | ||
159 | 159 | ADDB_LIKE ("sbcb", 6) |
160 | 160 | |
161 | 161 | #define ANDB_LIKE(NAME,SUBOP2,SIZE_OPERAND) \ |
162 | - { NAME, (0x48000000 | SUBOP2), 0xf80f001f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC1_POS, NPS_SRC2_POS, SIZE_OPERAND }, { C_NPS_F }}, | |
162 | + { NAME, (0x48000000 | SUBOP2), 0xf80f001f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC1_POS, NPS_SRC2_POS, SIZE_OPERAND }, { C_NPS_F }}, | |
163 | 163 | |
164 | 164 | ANDB_LIKE ("andb", 1, NPS_ANDB_SIZE) |
165 | 165 | ANDB_LIKE ("xorb", 2, NPS_ANDB_SIZE) |
@@ -170,40 +170,40 @@ ANDB_LIKE ("shlb", 0xb, NPS_ANDB_SIZE) | ||
170 | 170 | ANDB_LIKE ("shrb", 0xc, NPS_ANDB_SIZE) |
171 | 171 | |
172 | 172 | #define NOTB_LIKE(NAME,SUBOP2) \ |
173 | - { NAME, (0x48000000 | SUBOP2), 0xf80f001f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_ANDB_SIZE }, { C_NPS_F }}, | |
173 | + { NAME, (0x48000000 | SUBOP2), 0xf80f001f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_ANDB_SIZE }, { C_NPS_F }}, | |
174 | 174 | |
175 | 175 | NOTB_LIKE ("notb", 0x9) |
176 | 176 | NOTB_LIKE ("cntbb", 0xa) |
177 | 177 | |
178 | 178 | #define DIV_LIKE(NAME,DIV_MODE) \ |
179 | - { NAME, (0x4800000d | DIV_MODE << 14), 0xf80fc3ff, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC1_POS, NPS_SRC2_POS, }, { C_NPS_F }}, \ | |
180 | - { NAME, (0x4800020d | DIV_MODE << 14), 0xf8efc21f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_DIV_UIMM4, NPS_SRC1_POS }, { C_NPS_F }}, | |
179 | + { NAME, (0x4800000d | DIV_MODE << 14), 0xf80fc3ff, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC1_POS, NPS_SRC2_POS, }, { C_NPS_F }}, \ | |
180 | + { NAME, (0x4800020d | DIV_MODE << 14), 0xf8efc21f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_DIV_UIMM4, NPS_SRC1_POS }, { C_NPS_F }}, | |
181 | 181 | |
182 | 182 | DIV_LIKE ("div", 0x1) |
183 | 183 | DIV_LIKE ("mod", 0x2) |
184 | 184 | DIV_LIKE ("divm", 0x0) |
185 | 185 | |
186 | -{ "qcmp", 0x4810000e, 0xf81f001e, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_QCMP_SIZE, NPS_QCMP_M1, NPS_QCMP_M2, NPS_QCMP_M3 }, { C_NPS_AR_AL }}, | |
187 | -{ "qcmp", 0x481001ee, 0xf81f01fe, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_QCMP_SIZE, NPS_QCMP_M1, NPS_QCMP_M2 }, { C_NPS_AR_AL }}, | |
188 | -{ "qcmp", 0x481001ee, 0xf81f81fe, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_QCMP_SIZE, NPS_QCMP_M1 }, { C_NPS_AR_AL }}, | |
189 | -{ "qcmp", 0x481001ee, 0xf81fc1fe, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_QCMP_SIZE }, { C_NPS_AR_AL }}, | |
186 | +{ "qcmp", 0x4810000e, 0xf81f001e, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_QCMP_SIZE, NPS_QCMP_M1, NPS_QCMP_M2, NPS_QCMP_M3 }, { C_NPS_AR_AL }}, | |
187 | +{ "qcmp", 0x481001ee, 0xf81f01fe, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_QCMP_SIZE, NPS_QCMP_M1, NPS_QCMP_M2 }, { C_NPS_AR_AL }}, | |
188 | +{ "qcmp", 0x481001ee, 0xf81f81fe, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_QCMP_SIZE, NPS_QCMP_M1 }, { C_NPS_AR_AL }}, | |
189 | +{ "qcmp", 0x481001ee, 0xf81fc1fe, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS, NPS_QCMP_SIZE }, { C_NPS_AR_AL }}, | |
190 | 190 | |
191 | -{ "calcsd", 0x48000010, 0xf80f407f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_CALC_ENTRY_SIZE }, { C_NPS_F }}, | |
192 | -{ "calcxd", 0x48004010, 0xf80f407f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_CALC_ENTRY_SIZE }, { C_NPS_F }}, | |
191 | +{ "calcsd", 0x48000010, 0xf80f407f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_CALC_ENTRY_SIZE }, { C_NPS_F }}, | |
192 | +{ "calcxd", 0x48004010, 0xf80f407f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_CALC_ENTRY_SIZE }, { C_NPS_F }}, | |
193 | 193 | |
194 | -{ "calcbsd", 0x48000030, 0xf80f407f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
195 | -{ "calcbxd", 0x48004030, 0xf80f407f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
194 | +{ "calcbsd", 0x48000030, 0xf80f407f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
195 | +{ "calcbxd", 0x48004030, 0xf80f407f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
196 | 196 | |
197 | -{ "calckey", 0x48000050, 0xf80f407f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
198 | -{ "calcxkey", 0x48004050, 0xf80f407f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
197 | +{ "calckey", 0x48000050, 0xf80f407f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
198 | +{ "calcxkey", 0x48004050, 0xf80f407f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
199 | 199 | |
200 | -{ "mxb", 0x580b0000, 0xf81f8007, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_FIELD_START_POS, NPS_FIELD_SIZE, NPS_SHIFT_FACTOR }, { 0 }}, | |
201 | -{ "mxb", 0x580b8000, 0xf81f8007, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_FIELD_START_POS, NPS_FIELD_SIZE, NPS_SHIFT_FACTOR, NPS_BITS_TO_SCRAMBLE }, { C_NPS_S }}, | |
202 | -{ "imxb", 0x580b0001, 0xf81f8007, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_FIELD_START_POS, NPS_FIELD_SIZE, NPS_SHIFT_FACTOR }, { 0 }}, | |
203 | -{ "imxb", 0x580b8001, 0xf81f8007, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_FIELD_START_POS, NPS_FIELD_SIZE, NPS_SHIFT_FACTOR, NPS_BITS_TO_SCRAMBLE }, { C_NPS_S }}, | |
200 | +{ "mxb", 0x580b0000, 0xf81f8007, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_FIELD_START_POS, NPS_FIELD_SIZE, NPS_SHIFT_FACTOR }, { 0 }}, | |
201 | +{ "mxb", 0x580b8000, 0xf81f8007, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_FIELD_START_POS, NPS_FIELD_SIZE, NPS_SHIFT_FACTOR, NPS_BITS_TO_SCRAMBLE }, { C_NPS_S }}, | |
202 | +{ "imxb", 0x580b0001, 0xf81f8007, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_FIELD_START_POS, NPS_FIELD_SIZE, NPS_SHIFT_FACTOR }, { 0 }}, | |
203 | +{ "imxb", 0x580b8001, 0xf81f8007, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_FIELD_START_POS, NPS_FIELD_SIZE, NPS_SHIFT_FACTOR, NPS_BITS_TO_SCRAMBLE }, { C_NPS_S }}, | |
204 | 204 | |
205 | 205 | #define ADDL_LIKE(NAME,SUBOP2,SHIM) \ |
206 | - { NAME, (0x48000000 | (SUBOP2 << 16)), 0xf80f0000, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST, NPS_R_SRC1, SHIM }, { C_NPS_F }}, | |
206 | + { NAME, (0x48000000 | (SUBOP2 << 16)), 0xf80f0000, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST, NPS_R_SRC1, SHIM }, { C_NPS_F }}, | |
207 | 207 | |
208 | 208 | ADDL_LIKE ("addl", 0xA, NPS_SIMM16) |
209 | 209 | ADDL_LIKE ("subl", 0xB, NPS_SIMM16) |
@@ -211,190 +211,190 @@ ADDL_LIKE ("orl", 0xC, NPS_UIMM16) | ||
211 | 211 | ADDL_LIKE ("andl", 0xD, NPS_UIMM16) |
212 | 212 | ADDL_LIKE ("xorl", 0xE, NPS_UIMM16) |
213 | 213 | |
214 | -{ "andab", 0x48000011, 0xf80f801f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_SRC2_POS_5B, NPS_BITOP_SIZE }, { C_NPS_F } }, | |
215 | -{ "andab", 0x48008011, 0xf80f801f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS_5B, NPS_BITOP_SIZE }, { C_NPS_F } }, | |
216 | -{ "orab", 0x48000012, 0xf80f801f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_SRC2_POS_5B, NPS_BITOP_SIZE }, { C_NPS_F } }, | |
217 | -{ "orab", 0x48008012, 0xf80f801f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS_5B, NPS_BITOP_SIZE }, { C_NPS_F } }, | |
214 | +{ "andab", 0x48000011, 0xf80f801f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_SRC2_POS_5B, NPS_BITOP_SIZE }, { C_NPS_F } }, | |
215 | +{ "andab", 0x48008011, 0xf80f801f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS_5B, NPS_BITOP_SIZE }, { C_NPS_F } }, | |
216 | +{ "orab", 0x48000012, 0xf80f801f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_SRC2_POS_5B, NPS_BITOP_SIZE }, { C_NPS_F } }, | |
217 | +{ "orab", 0x48008012, 0xf80f801f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_SRC2_POS_5B, NPS_BITOP_SIZE }, { C_NPS_F } }, | |
218 | 218 | |
219 | -{ "lbdsize", 0x382f0005, 0xf8ff003f, ARC_OPCODE_NPS400, ARITH, NONE, { RB, RC }, { C_F }}, | |
219 | +{ "lbdsize", 0x382f0005, 0xf8ff003f, ARC_OPCODE_ARC700, ARITH, NPS400, { RB, RC }, { C_F }}, | |
220 | 220 | |
221 | -{ "bdlen", 0x48000013, 0xf80fc01f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BDLEN_MAX_LEN }, { C_NPS_F }}, | |
222 | -{ "bdlen", 0x48004013, 0xf80fc01f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
223 | -{ "bdlen", 0x48008013, 0xf80fc01f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BDLEN_MAX_LEN }, { C_NPS_F }}, | |
224 | -{ "bdlen", 0x4800c013, 0xf80fc01f, ARC_OPCODE_NPS400, ARITH, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
221 | +{ "bdlen", 0x48000013, 0xf80fc01f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, NPS_BDLEN_MAX_LEN }, { C_NPS_F }}, | |
222 | +{ "bdlen", 0x48004013, 0xf80fc01f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
223 | +{ "bdlen", 0x48008013, 0xf80fc01f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, NPS_BDLEN_MAX_LEN }, { C_NPS_F }}, | |
224 | +{ "bdlen", 0x4800c013, 0xf80fc01f, ARC_OPCODE_ARC700, ARITH, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B }, { C_NPS_F }}, | |
225 | 225 | |
226 | 226 | /* csma a,b,c 00111bbb00100001FBBBCCCCCCAAAAAA */ |
227 | -{ "csma", 0x382a0000, 0xf8ff8000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, RC }, { 0 }}, | |
227 | +{ "csma", 0x382a0000, 0xf8ff8000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, RC }, { 0 }}, | |
228 | 228 | |
229 | 229 | /* csma a,limm,c 0011111000100001F111CCCCCCAAAAAA */ |
230 | -{ "csma", 0x3e2a7000, 0xfffff000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, RC }, { 0 }}, | |
230 | +{ "csma", 0x3e2a7000, 0xfffff000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, RC }, { 0 }}, | |
231 | 231 | |
232 | 232 | /* csma a,b,u6 00111bbb01100001FBBBuuuuuuAAAAAA */ |
233 | -{ "csma", 0x386a0000, 0xf8ff8000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, UIMM6_20 }, { 0 }}, | |
233 | +{ "csma", 0x386a0000, 0xf8ff8000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, UIMM6_20 }, { 0 }}, | |
234 | 234 | |
235 | 235 | /* csma 0,b,c 00111bbb00100001FBBBCCCCCC111110 */ |
236 | -{ "csma", 0x382a003e, 0xf8ff803f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, RC }, { 0 }}, | |
236 | +{ "csma", 0x382a003e, 0xf8ff803f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, RC }, { 0 }}, | |
237 | 237 | |
238 | 238 | /* csma 0,limm,c 0011111000100001F111CCCCCC111110 */ |
239 | -{ "csma", 0x3e2a703e, 0xfffff03f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, RC }, { 0 }}, | |
239 | +{ "csma", 0x3e2a703e, 0xfffff03f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, RC }, { 0 }}, | |
240 | 240 | |
241 | 241 | /* csma 0,b,u6 00111bbb01100001FBBBuuuuuu111110 */ |
242 | -{ "csma", 0x386a003e, 0xf8ff803f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, UIMM6_20 }, { 0 }}, | |
242 | +{ "csma", 0x386a003e, 0xf8ff803f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, UIMM6_20 }, { 0 }}, | |
243 | 243 | |
244 | 244 | /* csma 0,b,limm 00111bbb00100001FBBB111110111110 */ |
245 | -{ "csma", 0x382a0fbe, 0xf8ff8fff, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, LIMM }, { 0 }}, | |
245 | +{ "csma", 0x382a0fbe, 0xf8ff8fff, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, LIMM }, { 0 }}, | |
246 | 246 | |
247 | 247 | /* csma a,b,limm 00111bbb00100001FBBB111110AAAAAA */ |
248 | -{ "csma", 0x382a0f80, 0xf8ff8fc0, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, LIMM }, { 0 }}, | |
248 | +{ "csma", 0x382a0f80, 0xf8ff8fc0, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, LIMM }, { 0 }}, | |
249 | 249 | |
250 | 250 | /* csma a,limm,limm 0011111000100001F111111110AAAAAA */ |
251 | -{ "csma", 0x3e2a7f80, 0xffffffc0, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, LIMMdup }, { 0 }}, | |
251 | +{ "csma", 0x3e2a7f80, 0xffffffc0, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, LIMMdup }, { 0 }}, | |
252 | 252 | |
253 | 253 | /* csma a,limm,u6 0011111001100001F111uuuuuuAAAAAA */ |
254 | -{ "csma", 0x3e6a7000, 0xfffff000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, UIMM6_20 }, { 0 }}, | |
254 | +{ "csma", 0x3e6a7000, 0xfffff000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, UIMM6_20 }, { 0 }}, | |
255 | 255 | |
256 | 256 | /* csma 0,limm,u6 0011111001100001F111uuuuuu111110 */ |
257 | -{ "csma", 0x3e6a703e, 0xfffff03f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, UIMM6_20 }, { 0 }}, | |
257 | +{ "csma", 0x3e6a703e, 0xfffff03f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, UIMM6_20 }, { 0 }}, | |
258 | 258 | |
259 | 259 | /* csms a,b,c 00111bbb00101100FBBBCCCCCCAAAAAA */ |
260 | -{ "csms", 0x382c0000, 0xf8ff8000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, RC }, { 0 }}, | |
260 | +{ "csms", 0x382c0000, 0xf8ff8000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, RC }, { 0 }}, | |
261 | 261 | |
262 | 262 | /* csma a,limm,c 0011111000101100F111CCCCCCAAAAAA */ |
263 | -{ "csms", 0x3e2c7000, 0xfffff000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, RC }, { 0 }}, | |
263 | +{ "csms", 0x3e2c7000, 0xfffff000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, RC }, { 0 }}, | |
264 | 264 | |
265 | 265 | /* csms a,b,u6 00111bbb01101100FBBBuuuuuuAAAAAA */ |
266 | -{ "csms", 0x386c0000, 0xf8ff8000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, UIMM6_20 }, { 0 }}, | |
266 | +{ "csms", 0x386c0000, 0xf8ff8000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, UIMM6_20 }, { 0 }}, | |
267 | 267 | |
268 | 268 | /* csms 0,b,c 00111bbb00101100FBBBCCCCCC111110 */ |
269 | -{ "csms", 0x382c003e, 0xf8ff803f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, RC }, { 0 }}, | |
269 | +{ "csms", 0x382c003e, 0xf8ff803f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, RC }, { 0 }}, | |
270 | 270 | |
271 | 271 | /* csms 0,limm,c 0011111000101100F111CCCCCC111110 */ |
272 | -{ "csms", 0x3e2c703e, 0xfffff03f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, RC }, { 0 }}, | |
272 | +{ "csms", 0x3e2c703e, 0xfffff03f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, RC }, { 0 }}, | |
273 | 273 | |
274 | 274 | /* csms 0,b,u6 00111bbb01101100FBBBuuuuuu111110 */ |
275 | -{ "csms", 0x386c003e, 0xf8ff803f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, UIMM6_20 }, { 0 }}, | |
275 | +{ "csms", 0x386c003e, 0xf8ff803f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, UIMM6_20 }, { 0 }}, | |
276 | 276 | |
277 | 277 | /* csms 0,b,limm 00111bbb00101100FBBB111110111110 */ |
278 | -{ "csms", 0x382c0fbe, 0xf8ff8fff, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, LIMM }, { 0 }}, | |
278 | +{ "csms", 0x382c0fbe, 0xf8ff8fff, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, LIMM }, { 0 }}, | |
279 | 279 | |
280 | 280 | /* csms a,b,limm 00111bbb00101100FBBB111110AAAAAA */ |
281 | -{ "csms", 0x382c0f80, 0xf8ff8fc0, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, LIMM }, { 0 }}, | |
281 | +{ "csms", 0x382c0f80, 0xf8ff8fc0, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, LIMM }, { 0 }}, | |
282 | 282 | |
283 | 283 | /* csms a,limm,limm 0011111000101100F111111110AAAAAA */ |
284 | -{ "csms", 0x3e2c7f80, 0xffffffc0, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, LIMMdup }, { 0 }}, | |
284 | +{ "csms", 0x3e2c7f80, 0xffffffc0, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, LIMMdup }, { 0 }}, | |
285 | 285 | |
286 | 286 | /* csms a,limm,u6 0011111001101100F111uuuuuuAAAAAA */ |
287 | -{ "csms", 0x3e6c7000, 0xfffff000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, UIMM6_20 }, { 0 }}, | |
287 | +{ "csms", 0x3e6c7000, 0xfffff000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, UIMM6_20 }, { 0 }}, | |
288 | 288 | |
289 | 289 | /* csms 0,limm,u6 0011111001101100F111uuuuuu111110 */ |
290 | -{ "csms", 0x3e6c703e, 0xfffff03f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, UIMM6_20 }, { 0 }}, | |
290 | +{ "csms", 0x3e6c703e, 0xfffff03f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, UIMM6_20 }, { 0 }}, | |
291 | 291 | |
292 | 292 | /* cbba a,b,c 00111bbb00101101FBBBCCCCCCAAAAAA */ |
293 | -{ "cbba", 0x382d0000, 0xf8ff0000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, RC }, { C_F }}, | |
293 | +{ "cbba", 0x382d0000, 0xf8ff0000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, RC }, { C_F }}, | |
294 | 294 | |
295 | 295 | /* cbba a,limm,c 0011111000101101F111CCCCCCAAAAAA */ |
296 | -{ "cbba", 0x3e2d7000, 0xffff7000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, RC }, { C_F }}, | |
296 | +{ "cbba", 0x3e2d7000, 0xffff7000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, RC }, { C_F }}, | |
297 | 297 | |
298 | 298 | /* cbba a,b,u6 00111bbb01101101FBBBuuuuuuAAAAAA */ |
299 | -{ "cbba", 0x386d0000, 0xf8ff0000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, UIMM6_20 }, { C_F }}, | |
299 | +{ "cbba", 0x386d0000, 0xf8ff0000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, UIMM6_20 }, { C_F }}, | |
300 | 300 | |
301 | 301 | /* cbba 0,b,c 00111bbb00101101FBBBCCCCCC111110 */ |
302 | -{ "cbba", 0x382d003e, 0xf8ff003f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, RC }, { C_F }}, | |
302 | +{ "cbba", 0x382d003e, 0xf8ff003f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, RC }, { C_F }}, | |
303 | 303 | |
304 | 304 | /* cbba 0,limm,c 0011111000101101F111CCCCCC111110 */ |
305 | -{ "cbba", 0x3e2d703e, 0xffff703f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, RC }, { C_F }}, | |
305 | +{ "cbba", 0x3e2d703e, 0xffff703f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, RC }, { C_F }}, | |
306 | 306 | |
307 | 307 | /* cbba 0,b,u6 00111bbb01101101FBBBuuuuuu111110 */ |
308 | -{ "cbba", 0x386d003e, 0xf8ff003f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, UIMM6_20 }, { C_F }}, | |
308 | +{ "cbba", 0x386d003e, 0xf8ff003f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, UIMM6_20 }, { C_F }}, | |
309 | 309 | |
310 | 310 | /* cbba 0,b,limm 00111bbb00101101FBBB111110111110 */ |
311 | -{ "cbba", 0x382d0fbe, 0xf8ff0fff, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, LIMM }, { C_F }}, | |
311 | +{ "cbba", 0x382d0fbe, 0xf8ff0fff, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, LIMM }, { C_F }}, | |
312 | 312 | |
313 | 313 | /* cbba a,b,limm 00111bbb00101101FBBB111110AAAAAA */ |
314 | -{ "cbba", 0x382d0f80, 0xf8ff0fc0, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, LIMM }, { C_F }}, | |
314 | +{ "cbba", 0x382d0f80, 0xf8ff0fc0, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, LIMM }, { C_F }}, | |
315 | 315 | |
316 | 316 | /* cbba a,limm,limm 0011111000101101F111111110AAAAAA */ |
317 | -{ "cbba", 0x3e2d7f80, 0xffff7fc0, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, LIMMdup }, { C_F }}, | |
317 | +{ "cbba", 0x3e2d7f80, 0xffff7fc0, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, LIMMdup }, { C_F }}, | |
318 | 318 | |
319 | 319 | /* cbba a,limm,u6 0011111001101101F111uuuuuuAAAAAA */ |
320 | -{ "cbba", 0x3e6d7000, 0xffff7000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, UIMM6_20 }, { C_F }}, | |
320 | +{ "cbba", 0x3e6d7000, 0xffff7000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, UIMM6_20 }, { C_F }}, | |
321 | 321 | |
322 | 322 | /* cbba 0,limm,u6 0011111001101101F111uuuuuu111110 */ |
323 | -{ "cbba", 0x3e6d703e, 0xffff703f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, UIMM6_20 }, { C_F }}, | |
323 | +{ "cbba", 0x3e6d703e, 0xffff703f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, UIMM6_20 }, { C_F }}, | |
324 | 324 | |
325 | 325 | /* zncv<.rd|.wr> a,b,c 00111bbb001101010BBBCCCCCCAAAAAA */ |
326 | -{ "zncv", 0x38350000, 0xf8ff0000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, RC }, { C_NPS_ZNCV }}, | |
326 | +{ "zncv", 0x38350000, 0xf8ff0000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, RC }, { C_NPS_ZNCV }}, | |
327 | 327 | |
328 | 328 | /* zncv<.rd|.wr> a,b,u6 00111bbb011101010BBBuuuuuuAAAAAA */ |
329 | -{ "zncv", 0x38750000, 0xf8ff0000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, UIMM6_20}, { C_NPS_ZNCV }}, | |
329 | +{ "zncv", 0x38750000, 0xf8ff0000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, UIMM6_20}, { C_NPS_ZNCV }}, | |
330 | 330 | |
331 | 331 | /* zncv<.rd|.wr> b,b,s12 00111bbb101101010BBBssssssSSSSSS */ |
332 | -{ "zncv", 0x38b50000, 0xf8ff0000, ARC_OPCODE_NPS400, ARITH, NONE, { RB, RBdup, SIMM12_20 }, { C_NPS_ZNCV }}, | |
332 | +{ "zncv", 0x38b50000, 0xf8ff0000, ARC_OPCODE_ARC700, ARITH, NPS400, { RB, RBdup, SIMM12_20 }, { C_NPS_ZNCV }}, | |
333 | 333 | |
334 | 334 | /* zncv<.rd|.wr> a,b,limm 00111bbb001101010BBB111110AAAAAA */ |
335 | -{ "zncv", 0x38350f80, 0xf8ff0fc0, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, LIMM }, { C_NPS_ZNCV }}, | |
335 | +{ "zncv", 0x38350f80, 0xf8ff0fc0, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, LIMM }, { C_NPS_ZNCV }}, | |
336 | 336 | |
337 | 337 | /* zncv<.rd|.wr> a,limm,c 00111110001101010111CCCCCCAAAAAA */ |
338 | -{ "zncv", 0x3e357000, 0xffff7000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, RC }, { C_NPS_ZNCV }}, | |
338 | +{ "zncv", 0x3e357000, 0xffff7000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, RC }, { C_NPS_ZNCV }}, | |
339 | 339 | |
340 | 340 | /* zncv<.rd|.wr> a,limm,u6 00111110011101010111uuuuuuAAAAAA */ |
341 | -{ "zncv", 0x3e757000, 0xffff7000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, UIMM6_20 }, { C_NPS_ZNCV }}, | |
341 | +{ "zncv", 0x3e757000, 0xffff7000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, UIMM6_20 }, { C_NPS_ZNCV }}, | |
342 | 342 | |
343 | 343 | /* zncv<.rd|.wr> a,limm,limm 00111110001101010111111110AAAAAA */ |
344 | -{ "zncv", 0x3e357f80, 0xffff7fc0, ARC_OPCODE_NPS400, ARITH, NONE, { RA, LIMM, LIMMdup }, { C_NPS_ZNCV }}, | |
344 | +{ "zncv", 0x3e357f80, 0xffff7fc0, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, LIMM, LIMMdup }, { C_NPS_ZNCV }}, | |
345 | 345 | |
346 | 346 | /* zncv<.rd|.wr> 0,b,c 00111bbb001101010BBBCCCCCC111110 */ |
347 | -{ "zncv", 0x3835003e, 0xf8ff003f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, RC }, { C_NPS_ZNCV }}, | |
347 | +{ "zncv", 0x3835003e, 0xf8ff003f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, RC }, { C_NPS_ZNCV }}, | |
348 | 348 | |
349 | 349 | /* zncv<.rd|.wr> 0,b,u6 00111bbb011101010BBBuuuuuu111110 */ |
350 | -{ "zncv", 0x3875003e, 0xf8ff003f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, UIMM6_20 }, { C_NPS_ZNCV }}, | |
350 | +{ "zncv", 0x3875003e, 0xf8ff003f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, UIMM6_20 }, { C_NPS_ZNCV }}, | |
351 | 351 | |
352 | 352 | /* zncv<.rd|.wr> 0,b,limm 00111bbb001101010BBB111110111110 */ |
353 | -{ "zncv", 0x38350fbe, 0xf8ff0fff, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, RB, LIMM }, { C_NPS_ZNCV }}, | |
353 | +{ "zncv", 0x38350fbe, 0xf8ff0fff, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, RB, LIMM }, { C_NPS_ZNCV }}, | |
354 | 354 | |
355 | 355 | /* zncv<.rd|.wr> 0,limm,c 00111110001101010111CCCCCC111110 */ |
356 | -{ "zncv", 0x3e35703e, 0xffff703f, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, RC }, { C_NPS_ZNCV }}, | |
356 | +{ "zncv", 0x3e35703e, 0xffff703f, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, RC }, { C_NPS_ZNCV }}, | |
357 | 357 | |
358 | 358 | /* zncv<.rd|.wr> 0,limm,u6 00111110011101010111uuuuuu111110 */ |
359 | -{ "zncv", 0x3e75703e, 0xffff7000, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, UIMM6_20 }, { C_NPS_ZNCV }}, | |
359 | +{ "zncv", 0x3e75703e, 0xffff7000, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, UIMM6_20 }, { C_NPS_ZNCV }}, | |
360 | 360 | |
361 | 361 | /* zncv<.rd|.wr> 0,limm,s12 00111110101101010111ssssssSSSSSS */ |
362 | -{ "zncv", 0x3eb57000, 0xffff7000, ARC_OPCODE_NPS400, ARITH, NONE, { ZA, LIMM, SIMM12_20 }, { C_NPS_ZNCV }}, | |
362 | +{ "zncv", 0x3eb57000, 0xffff7000, ARC_OPCODE_ARC700, ARITH, NPS400, { ZA, LIMM, SIMM12_20 }, { C_NPS_ZNCV }}, | |
363 | 363 | |
364 | 364 | /* hofs a,b,c */ |
365 | -{ "hofs", 0x38360000, 0xf8ff0000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, RC }, { C_F }}, | |
365 | +{ "hofs", 0x38360000, 0xf8ff0000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, RC }, { C_F }}, | |
366 | 366 | |
367 | 367 | /* hofs a,b,min_hofs,psbc */ |
368 | -{ "hofs", 0x38760000, 0xf8ff0000, ARC_OPCODE_NPS400, ARITH, NONE, { RA, RB, NPS_MIN_HOFS, NPS_PSBC }, { C_F }}, | |
368 | +{ "hofs", 0x38760000, 0xf8ff0000, ARC_OPCODE_ARC700, ARITH, NPS400, { RA, RB, NPS_MIN_HOFS, NPS_PSBC }, { C_F }}, | |
369 | 369 | |
370 | 370 | /**** Protocol Decoder Instructions ****/ |
371 | 371 | |
372 | 372 | /* dctcp b,c 00111bbb001011110bbbcccccc000000 */ |
373 | -{ "dctcp", 0x382f0000, 0xf8ff803f, ARC_OPCODE_NPS400, NET, NONE, { RB, RC }, { 0 }}, | |
373 | +{ "dctcp", 0x382f0000, 0xf8ff803f, ARC_OPCODE_ARC700, NET, NPS400, { RB, RC }, { 0 }}, | |
374 | 374 | |
375 | 375 | /* dcip a,b,c 00111bbb001011110bbbccccccaaaaaa */ |
376 | -{ "dcip", 0x38290000, 0xf8ff8000, ARC_OPCODE_NPS400, NET, NONE, { RA, RB, RC }, { 0 }}, | |
376 | +{ "dcip", 0x38290000, 0xf8ff8000, ARC_OPCODE_ARC700, NET, NPS400, { RA, RB, RC }, { 0 }}, | |
377 | 377 | |
378 | 378 | /* dcet b,c 00111bbb001011110bbbcccccc000010 */ |
379 | -{ "dcet", 0x382f0002, 0xf8ff803f, ARC_OPCODE_NPS400, NET, NONE, { RB, RC }, { 0 }}, | |
379 | +{ "dcet", 0x382f0002, 0xf8ff803f, ARC_OPCODE_ARC700, NET, NPS400, { RB, RC }, { 0 }}, | |
380 | 380 | |
381 | 381 | /* dcet a,b,c 00111bbb001000000bbbccccccaaaaaa */ |
382 | -{ "dcet", 0x38200000, 0xf8ff8000, ARC_OPCODE_NPS400, NET, NONE, { RA, RB, RC }, { 0 }}, | |
382 | +{ "dcet", 0x38200000, 0xf8ff8000, ARC_OPCODE_ARC700, NET, NPS400, { RA, RB, RC }, { 0 }}, | |
383 | 383 | |
384 | 384 | /**** ACL Instructions ****/ |
385 | 385 | |
386 | 386 | /* dcacl<.f> a,b,c 00111bbb001001010bbbccccccaaaaaa */ |
387 | -{ "dcacl", 0x38250000, 0xf8ff0000, ARC_OPCODE_NPS400, ACL, NONE, { RA, RB, RC }, { C_F }}, | |
387 | +{ "dcacl", 0x38250000, 0xf8ff0000, ARC_OPCODE_ARC700, ACL, NPS400, { RA, RB, RC }, { C_F }}, | |
388 | 388 | |
389 | 389 | /**** DPI Instructions ****/ |
390 | 390 | |
391 | 391 | /* hash dst,src1,src2,width,perm,nonlinear,basemat */ |
392 | -{ "hash", 0x58180000, 0xf81f0000, ARC_OPCODE_NPS400, DPI, NONE, { NPS_DPI_DST, NPS_DPI_SRC1_3B, NPS_R_SRC2_3B, NPS_HASH_WIDTH, NPS_HASH_PERM, NPS_HASH_NONLINEAR, NPS_HASH_BASEMAT }, { 0 }}, | |
392 | +{ "hash", 0x58180000, 0xf81f0000, ARC_OPCODE_ARC700, DPI, NPS400, { NPS_DPI_DST, NPS_DPI_SRC1_3B, NPS_R_SRC2_3B, NPS_HASH_WIDTH, NPS_HASH_PERM, NPS_HASH_NONLINEAR, NPS_HASH_BASEMAT }, { 0 }}, | |
393 | 393 | |
394 | 394 | /* hash.pN dst,src1,src2,width,len,ofs,basemat */ |
395 | 395 | |
396 | 396 | #define HASH_P(FUNC, SUBOP2) \ |
397 | - { "hash", (0x58100000 | (SUBOP2 << 16)), 0xf81f0000, ARC_OPCODE_NPS400, DPI, NONE, { NPS_DPI_DST, NPS_DPI_SRC1_3B, NPS_R_SRC2_3B, NPS_HASH_WIDTH, NPS_HASH_LEN, NPS_HASH_OFS, NPS_HASH_BASEMAT2 }, { C_NPS_P##FUNC }}, | |
397 | + { "hash", (0x58100000 | (SUBOP2 << 16)), 0xf81f0000, ARC_OPCODE_ARC700, DPI, NPS400, { NPS_DPI_DST, NPS_DPI_SRC1_3B, NPS_R_SRC2_3B, NPS_HASH_WIDTH, NPS_HASH_LEN, NPS_HASH_OFS, NPS_HASH_BASEMAT2 }, { C_NPS_P##FUNC }}, | |
398 | 398 | |
399 | 399 | HASH_P(0, 0x9) |
400 | 400 | HASH_P(1, 0xA) |
@@ -402,149 +402,149 @@ HASH_P(2, 0xB) | ||
402 | 402 | HASH_P(3, 0xC) |
403 | 403 | |
404 | 404 | /* tr<.f> a,b,c 00111bbb00100001FBBBCCCCCCAAAAAA */ |
405 | -{ "tr", 0x38210000, 0xf8ff0000, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, RC }, { C_F }}, | |
405 | +{ "tr", 0x38210000, 0xf8ff0000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, RC }, { C_F }}, | |
406 | 406 | |
407 | 407 | /* tr<.f> a,limm,c 0011111000100001F111CCCCCCAAAAAA */ |
408 | -{ "tr", 0x3e217000, 0xffff7000, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, RC }, { C_F }}, | |
408 | +{ "tr", 0x3e217000, 0xffff7000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, RC }, { C_F }}, | |
409 | 409 | |
410 | 410 | /* tr<.f> a,b,u6 00111bbb01100001FBBBuuuuuuAAAAAA */ |
411 | -{ "tr", 0x38610000, 0xf8ff0000, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, UIMM6_20 }, { C_F }}, | |
411 | +{ "tr", 0x38610000, 0xf8ff0000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, UIMM6_20 }, { C_F }}, | |
412 | 412 | |
413 | 413 | /* tr<.f> 0,b,c 00111bbb00100001FBBBCCCCCC111110 */ |
414 | -{ "tr", 0x3821003e, 0xf8ff003f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, RC }, { C_F }}, | |
414 | +{ "tr", 0x3821003e, 0xf8ff003f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, RC }, { C_F }}, | |
415 | 415 | |
416 | 416 | /* tr<.f> 0,limm,c 0011111000100001F111CCCCCC111110 */ |
417 | -{ "tr", 0x3e21703e, 0xffff703f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, LIMM, RC }, { C_F }}, | |
417 | +{ "tr", 0x3e21703e, 0xffff703f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, LIMM, RC }, { C_F }}, | |
418 | 418 | |
419 | 419 | /* tr<.f> 0,b,u6 00111bbb01100001FBBBuuuuuu111110 */ |
420 | -{ "tr", 0x3861003e, 0xf8ff003f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, UIMM6_20 }, { C_F }}, | |
420 | +{ "tr", 0x3861003e, 0xf8ff003f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, UIMM6_20 }, { C_F }}, | |
421 | 421 | |
422 | 422 | /* tr<.f> 0,b,limm 00111bbb00100001FBBB111110111110 */ |
423 | -{ "tr", 0x38210fbe, 0xf8ff0fff, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, LIMM }, { C_F }}, | |
423 | +{ "tr", 0x38210fbe, 0xf8ff0fff, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, LIMM }, { C_F }}, | |
424 | 424 | |
425 | 425 | /* tr<.f> a,b,limm 00111bbb00100001FBBB111110AAAAAA */ |
426 | -{ "tr", 0x38210f80, 0xf8ff0fc0, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, LIMM }, { C_F }}, | |
426 | +{ "tr", 0x38210f80, 0xf8ff0fc0, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, LIMM }, { C_F }}, | |
427 | 427 | |
428 | 428 | /* tr<.f> a,limm,limm 0011111000100001F111111110AAAAAA */ |
429 | -{ "tr", 0x3e217f80, 0xffff7fc0, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, LIMMdup }, { C_F }}, | |
429 | +{ "tr", 0x3e217f80, 0xffff7fc0, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, LIMMdup }, { C_F }}, | |
430 | 430 | |
431 | 431 | /* tr<.f> a,limm,u6 0011111001100001F111uuuuuuAAAAAA */ |
432 | -{ "tr", 0x3e617000, 0xffff7000, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, UIMM6_20 }, { C_F }}, | |
432 | +{ "tr", 0x3e617000, 0xffff7000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, UIMM6_20 }, { C_F }}, | |
433 | 433 | |
434 | 434 | /* tr<.f> 0,limm,u6 0011111001100001F111uuuuuu111110 */ |
435 | -{ "tr", 0x3e61703e, 0xffff703f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, LIMM, UIMM6_20 }, { C_F }}, | |
435 | +{ "tr", 0x3e61703e, 0xffff703f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, LIMM, UIMM6_20 }, { C_F }}, | |
436 | 436 | |
437 | 437 | /* utf8 a,b,c 00111bbb00100011FBBBCCCCCCAAAAAA */ |
438 | -{ "utf8", 0x38220000, 0xf8ff0000, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, RC }, { C_F }}, | |
438 | +{ "utf8", 0x38220000, 0xf8ff0000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, RC }, { C_F }}, | |
439 | 439 | |
440 | 440 | /* utf8 a,limm,c 0011111000100011F111CCCCCCAAAAAA */ |
441 | -{ "utf8", 0x3e227000, 0xffff7000, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, RC }, { C_F }}, | |
441 | +{ "utf8", 0x3e227000, 0xffff7000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, RC }, { C_F }}, | |
442 | 442 | |
443 | 443 | /* utf8 a,b,u6 00111bbb01100011FBBBuuuuuuAAAAAA */ |
444 | -{ "utf8", 0x38620000, 0xf8ff0000, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, UIMM6_20 }, { C_F }}, | |
444 | +{ "utf8", 0x38620000, 0xf8ff0000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, UIMM6_20 }, { C_F }}, | |
445 | 445 | |
446 | 446 | /* utf8 0,b,c 00111bbb00100011FBBBCCCCCC111110 */ |
447 | -{ "utf8", 0x3822003e, 0xf8ff003f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, RC }, { C_F }}, | |
447 | +{ "utf8", 0x3822003e, 0xf8ff003f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, RC }, { C_F }}, | |
448 | 448 | |
449 | 449 | /* utf8 0,limm,c 0011111000100011F111CCCCCC111110 */ |
450 | -{ "utf8", 0x3e22703e, 0xffff703f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, LIMM, RC }, { C_F }}, | |
450 | +{ "utf8", 0x3e22703e, 0xffff703f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, LIMM, RC }, { C_F }}, | |
451 | 451 | |
452 | 452 | /* utf8 0,b,u6 00111bbb01100011FBBBuuuuuu111110 */ |
453 | -{ "utf8", 0x3862003e, 0xf8ff003f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, UIMM6_20 }, { C_F }}, | |
453 | +{ "utf8", 0x3862003e, 0xf8ff003f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, UIMM6_20 }, { C_F }}, | |
454 | 454 | |
455 | 455 | /* utf8 0,b,limm 00111bbb00100011FBBB111110111110 */ |
456 | -{ "utf8", 0x38220fbe, 0xf8ff0fff, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, LIMM }, { C_F }}, | |
456 | +{ "utf8", 0x38220fbe, 0xf8ff0fff, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, LIMM }, { C_F }}, | |
457 | 457 | |
458 | 458 | /* utf8 a,b,limm 00111bbb00100011FBBB111110AAAAAA */ |
459 | -{ "utf8", 0x38220f80, 0xf8ff0fc0, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, LIMM }, { C_F }}, | |
459 | +{ "utf8", 0x38220f80, 0xf8ff0fc0, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, LIMM }, { C_F }}, | |
460 | 460 | |
461 | 461 | /* utf8 a,limm,limm 0011111000100011F111111110AAAAAA */ |
462 | -{ "utf8", 0x3e227f80, 0xffff7fc0, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, LIMMdup }, { C_F }}, | |
462 | +{ "utf8", 0x3e227f80, 0xffff7fc0, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, LIMMdup }, { C_F }}, | |
463 | 463 | |
464 | 464 | /* utf8 a,limm,u6 0011111001100011F111uuuuuuAAAAAA */ |
465 | -{ "utf8", 0x3e627000, 0xffff7000, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, UIMM6_20 }, { C_F }}, | |
465 | +{ "utf8", 0x3e627000, 0xffff7000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, UIMM6_20 }, { C_F }}, | |
466 | 466 | |
467 | 467 | /* utf8 0,limm,u6 0011111001100011F111uuuuuu111110 */ |
468 | -{ "utf8", 0x3e62703e, 0xffff703f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, LIMM, UIMM6_20 }, { C_F }}, | |
468 | +{ "utf8", 0x3e62703e, 0xffff703f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, LIMM, UIMM6_20 }, { C_F }}, | |
469 | 469 | |
470 | 470 | /* e4by dst,src1,src2,index0,index1,index2,index3 */ |
471 | -{ "e4by", 0x581d0000, 0xf81f0000, ARC_OPCODE_NPS400, DPI, NONE, { NPS_DPI_DST, NPS_DPI_SRC1_3B, NPS_R_SRC2_3B, NPS_E4BY_INDEX0, NPS_E4BY_INDEX1, NPS_E4BY_INDEX2, NPS_E4BY_INDEX3 }, { 0 }}, | |
471 | +{ "e4by", 0x581d0000, 0xf81f0000, ARC_OPCODE_ARC700, DPI, NPS400, { NPS_DPI_DST, NPS_DPI_SRC1_3B, NPS_R_SRC2_3B, NPS_E4BY_INDEX0, NPS_E4BY_INDEX1, NPS_E4BY_INDEX2, NPS_E4BY_INDEX3 }, { 0 }}, | |
472 | 472 | |
473 | 473 | /* addf<.f> a,b,c 00111bbb00100011FBBBCCCCCCAAAAAA */ |
474 | -{ "addf", 0x38230000, 0xf8ff0000, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, RC }, { C_F }}, | |
474 | +{ "addf", 0x38230000, 0xf8ff0000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, RC }, { C_F }}, | |
475 | 475 | |
476 | 476 | /* addf<.f> a,limm,c 0011111000100011F111CCCCCCAAAAAA */ |
477 | -{ "addf", 0x3e237000, 0xffff7000, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, RC }, { C_F }}, | |
477 | +{ "addf", 0x3e237000, 0xffff7000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, RC }, { C_F }}, | |
478 | 478 | |
479 | 479 | /* addf<.f> a,b,u6 00111bbb01100011FBBBuuuuuuAAAAAA */ |
480 | -{ "addf", 0x38630000, 0xf8ff0000, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, UIMM6_20 }, { C_F }}, | |
480 | +{ "addf", 0x38630000, 0xf8ff0000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, UIMM6_20 }, { C_F }}, | |
481 | 481 | |
482 | 482 | /* addf<.f> 0,b,c 00111bbb00100011FBBBCCCCCC111110 */ |
483 | -{ "addf", 0x3823003e, 0xf8ff003f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, RC }, { C_F }}, | |
483 | +{ "addf", 0x3823003e, 0xf8ff003f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, RC }, { C_F }}, | |
484 | 484 | |
485 | 485 | /* addf<.f> 0,limm,c 0011111000100011F111CCCCCC111110 */ |
486 | -{ "addf", 0x3e23703e, 0xffff703f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, LIMM, RC }, { C_F }}, | |
486 | +{ "addf", 0x3e23703e, 0xffff703f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, LIMM, RC }, { C_F }}, | |
487 | 487 | |
488 | 488 | /* addf<.f> 0,b,u6 00111bbb01100011FBBBuuuuuu111110 */ |
489 | -{ "addf", 0x3863003e, 0xf8ff003f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, UIMM6_20 }, { C_F }}, | |
489 | +{ "addf", 0x3863003e, 0xf8ff003f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, UIMM6_20 }, { C_F }}, | |
490 | 490 | |
491 | 491 | /* addf<.f> 0,b,limm 00111bbb00100011FBBB111110111110 */ |
492 | -{ "addf", 0x38230fbe, 0xf8ff0fff, ARC_OPCODE_NPS400, DPI, NONE, { ZA, RB, LIMM }, { C_F }}, | |
492 | +{ "addf", 0x38230fbe, 0xf8ff0fff, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, RB, LIMM }, { C_F }}, | |
493 | 493 | |
494 | 494 | /* addf<.f> a,b,limm 00111bbb00100011FBBB111110AAAAAA */ |
495 | -{ "addf", 0x38230f80, 0xf8ff0fc0, ARC_OPCODE_NPS400, DPI, NONE, { RA, RB, LIMM }, { C_F }}, | |
495 | +{ "addf", 0x38230f80, 0xf8ff0fc0, ARC_OPCODE_ARC700, DPI, NPS400, { RA, RB, LIMM }, { C_F }}, | |
496 | 496 | |
497 | 497 | /* addf<.f> a,limm,limm 0011111000100011F111111110AAAAAA */ |
498 | -{ "addf", 0x3e237f80, 0xffff7fc0, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, LIMMdup }, { C_F }}, | |
498 | +{ "addf", 0x3e237f80, 0xffff7fc0, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, LIMMdup }, { C_F }}, | |
499 | 499 | |
500 | 500 | /* addf<.f> a,limm,u6 0011111001100011F111uuuuuuAAAAAA */ |
501 | -{ "addf", 0x3e637000, 0xffff7000, ARC_OPCODE_NPS400, DPI, NONE, { RA, LIMM, UIMM6_20 }, { C_F }}, | |
501 | +{ "addf", 0x3e637000, 0xffff7000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, LIMM, UIMM6_20 }, { C_F }}, | |
502 | 502 | |
503 | 503 | /* addf<.f> 0,limm,u6 0011111001100011F111uuuuuu111110 */ |
504 | -{ "addf", 0x3e63703e, 0xffff703f, ARC_OPCODE_NPS400, DPI, NONE, { ZA, LIMM, UIMM6_20 }, { C_F }}, | |
504 | +{ "addf", 0x3e63703e, 0xffff703f, ARC_OPCODE_ARC700, DPI, NPS400, { ZA, LIMM, UIMM6_20 }, { C_F }}, | |
505 | 505 | |
506 | 506 | /* ldbit<.x2|.x4>.di<.cl> a,[b] 00010bbb00000000SBBB10011XAAAAAA */ |
507 | -{ "ldbit", 0x10000980, 0xf8ff8980, ARC_OPCODE_NPS400, DPI, NONE, { RA, BRAKET, RB, BRAKETdup }, { C_NPS_LDBIT_X_1, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL1 }}, | |
507 | +{ "ldbit", 0x10000980, 0xf8ff8980, ARC_OPCODE_ARC700, DPI, NPS400, { RA, BRAKET, RB, BRAKETdup }, { C_NPS_LDBIT_X_1, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL1 }}, | |
508 | 508 | |
509 | 509 | /* ldbit<.x2|.x4>.di<.cl> a,[b,s9] 00010bbbssssssssSBBB10011XAAAAAA */ |
510 | -{ "ldbit", 0x10000980, 0xf8000980, ARC_OPCODE_NPS400, DPI, NONE, { RA, BRAKET, RB, SIMM9_8, BRAKETdup }, { C_NPS_LDBIT_X_1, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL1 }}, | |
510 | +{ "ldbit", 0x10000980, 0xf8000980, ARC_OPCODE_ARC700, DPI, NPS400, { RA, BRAKET, RB, SIMM9_8, BRAKETdup }, { C_NPS_LDBIT_X_1, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL1 }}, | |
511 | 511 | |
512 | 512 | /* ldbit<.x2|.x4>.di<.cl> a,[limm] 0001011000000000011110011XAAAAAA */ |
513 | -{ "ldbit", 0x16007980, 0xfffff980, ARC_OPCODE_NPS400, DPI, NONE, { RA, BRAKET, LIMM, BRAKETdup }, { C_NPS_LDBIT_X_1, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL1 }}, | |
513 | +{ "ldbit", 0x16007980, 0xfffff980, ARC_OPCODE_ARC700, DPI, NPS400, { RA, BRAKET, LIMM, BRAKETdup }, { C_NPS_LDBIT_X_1, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL1 }}, | |
514 | 514 | |
515 | 515 | /* ldbit<.x2|.x4>.di<.cl> a,[limm,s9] 00010110ssssssssS11110011XAAAAAA */ |
516 | -{ "ldbit", 0x16007980, 0xff007980, ARC_OPCODE_NPS400, DPI, NONE, { RA, BRAKET, LIMM, SIMM9_8, BRAKETdup }, { C_NPS_LDBIT_X_1, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL1 }}, | |
516 | +{ "ldbit", 0x16007980, 0xff007980, ARC_OPCODE_ARC700, DPI, NPS400, { RA, BRAKET, LIMM, SIMM9_8, BRAKETdup }, { C_NPS_LDBIT_X_1, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL1 }}, | |
517 | 517 | |
518 | 518 | /* ldbit<.x2|.x4>.di<.cl> a,[b,c] 00100bbb0011011X1BBBCCCCCCAAAAAA */ |
519 | -{ "ldbit", 0x20368000, 0xf83e8000, ARC_OPCODE_NPS400, DPI, NONE, { RA, BRAKET, RB, RC, BRAKETdup }, { C_NPS_LDBIT_X_2, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL2 }}, | |
519 | +{ "ldbit", 0x20368000, 0xf83e8000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, BRAKET, RB, RC, BRAKETdup }, { C_NPS_LDBIT_X_2, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL2 }}, | |
520 | 520 | |
521 | 521 | /* ldbit<.x2|.x4>.di<.cl> a,[b,limm] 00100bbb0011011X1BBB111110AAAAAA */ |
522 | -{ "ldbit", 0x20368f80, 0xf83e8fc0, ARC_OPCODE_NPS400, DPI, NONE, { RA, BRAKET, RB, LIMM, BRAKETdup }, { C_NPS_LDBIT_X_2, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL2 }}, | |
522 | +{ "ldbit", 0x20368f80, 0xf83e8fc0, ARC_OPCODE_ARC700, DPI, NPS400, { RA, BRAKET, RB, LIMM, BRAKETdup }, { C_NPS_LDBIT_X_2, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL2 }}, | |
523 | 523 | |
524 | 524 | /* ldbit<.x2|.x4>.di<.cl> a,[limm,c] 001001100011011X1111CCCCCCAAAAAA */ |
525 | -{ "ldbit", 0x2636f000, 0xff3ef000, ARC_OPCODE_NPS400, DPI, NONE, { RA, BRAKET, LIMM, RC, BRAKETdup }, { C_NPS_LDBIT_X_2, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL2 }}, | |
525 | +{ "ldbit", 0x2636f000, 0xff3ef000, ARC_OPCODE_ARC700, DPI, NPS400, { RA, BRAKET, LIMM, RC, BRAKETdup }, { C_NPS_LDBIT_X_2, C_NPS_LDBIT_DI, C_NPS_LDBIT_CL2 }}, | |
526 | 526 | |
527 | 527 | /**** Pipeline Control Instructions ****/ |
528 | 528 | |
529 | 529 | /* schd<.rw|.rd> */ |
530 | -{ "schd", 0x3e6f7004, 0xffffff7f, ARC_OPCODE_NPS400, CONTROL, NONE, { 0 }, { C_NPS_SCHD_RW }}, | |
530 | +{ "schd", 0x3e6f7004, 0xffffff7f, ARC_OPCODE_ARC700, CONTROL, NPS400, { 0 }, { C_NPS_SCHD_RW }}, | |
531 | 531 | |
532 | 532 | /* schd.wft.<.ie1|.ie2|.ie12> */ |
533 | -{ "schd", 0x3e6f7044, 0xfffffcff, ARC_OPCODE_NPS400, CONTROL, NONE, { 0 }, { C_NPS_SCHD_TRIG, C_NPS_SCHD_IE }}, | |
533 | +{ "schd", 0x3e6f7044, 0xfffffcff, ARC_OPCODE_ARC700, CONTROL, NPS400, { 0 }, { C_NPS_SCHD_TRIG, C_NPS_SCHD_IE }}, | |
534 | 534 | |
535 | 535 | /* sync<.rd|.wr> */ |
536 | -{ "sync", 0x3e6f703f, 0xffffffbf, ARC_OPCODE_NPS400, CONTROL, NONE, { 0 }, { C_NPS_SYNC }}, | |
536 | +{ "sync", 0x3e6f703f, 0xffffffbf, ARC_OPCODE_ARC700, CONTROL, NPS400, { 0 }, { C_NPS_SYNC }}, | |
537 | 537 | |
538 | 538 | /* hwscd.off B */ |
539 | -{ "hwschd", 0x386f00bf, 0xf8ff8fff, ARC_OPCODE_NPS400, CONTROL, NONE, { RB }, { C_NPS_HWS_OFF }}, | |
539 | +{ "hwschd", 0x386f00bf, 0xf8ff8fff, ARC_OPCODE_ARC700, CONTROL, NPS400, { RB }, { C_NPS_HWS_OFF }}, | |
540 | 540 | |
541 | 541 | /* hwscd.restore 0,C */ |
542 | -{ "hwschd", 0x3e6f7003, 0xfffff03f, ARC_OPCODE_NPS400, CONTROL, NONE, { ZA, RC }, { C_NPS_HWS_RESTORE }}, | |
542 | +{ "hwschd", 0x3e6f7003, 0xfffff03f, ARC_OPCODE_ARC700, CONTROL, NPS400, { ZA, RC }, { C_NPS_HWS_RESTORE }}, | |
543 | 543 | |
544 | 544 | /**** Load / Store From (0x57f00000 + Offset) Instructions ****/ |
545 | 545 | |
546 | 546 | #define XLDST_LIKE(NAME,SUBOP2) \ |
547 | - { NAME, (0x58000000 | (SUBOP2 << 16)), 0xf81f0000, ARC_OPCODE_NPS400, MEMORY, NONE, { NPS_R_DST, BRAKET, NPS_XLDST_UIMM16, BRAKETdup }, { 0 }}, | |
547 | + { NAME, (0x58000000 | (SUBOP2 << 16)), 0xf81f0000, ARC_OPCODE_ARC700, MEMORY, NPS400, { NPS_R_DST, BRAKET, NPS_XLDST_UIMM16, BRAKETdup }, { 0 }}, | |
548 | 548 | |
549 | 549 | XLDST_LIKE("xldb", 0x8) |
550 | 550 | XLDST_LIKE("xldw", 0x9) |
@@ -2486,59 +2486,59 @@ const unsigned arc_num_relax_opcodes = ARRAY_SIZE (arc_relax_opcodes); | ||
2486 | 2486 | const struct arc_long_opcode arc_long_opcodes[] = |
2487 | 2487 | { |
2488 | 2488 | /* mrgb - (48 bit instruction). */ |
2489 | - { { "mrgb", 0x5803, 0xf81f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2489 | + { { "mrgb", 0x5803, 0xf81f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2490 | 2490 | 0x00000000, 0x80000000, { IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_SRC_POS1, NPS_BITOP_SIZE1, NPS_BITOP_DST_POS2, NPS_BITOP_SRC_POS2, NPS_BITOP_SIZE2 }}, |
2491 | 2491 | |
2492 | 2492 | /* mrgb.cl - (48 bit instruction). */ |
2493 | - { { "mrgb", 0x5803, 0xf81f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2493 | + { { "mrgb", 0x5803, 0xf81f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2494 | 2494 | 0x80000000, 0x80000000, { IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_SRC_POS1, NPS_BITOP_SIZE1, NPS_BITOP_DST_POS2, NPS_BITOP_SRC_POS2, NPS_BITOP_SIZE2 }}, |
2495 | 2495 | |
2496 | 2496 | /* mov2b - (48 bit instruction). */ |
2497 | - { { "mov2b", 0x5800, 0xf81f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2497 | + { { "mov2b", 0x5800, 0xf81f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2498 | 2498 | 0x00000000, 0x80000000, { IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_MOD1, NPS_BITOP_SRC_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_MOD2, NPS_BITOP_SRC_POS2 }}, |
2499 | 2499 | |
2500 | 2500 | /* mov2b.cl - (48 bit instruction). */ |
2501 | - { { "mov2b", 0x5800, 0xf81f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2501 | + { { "mov2b", 0x5800, 0xf81f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2502 | 2502 | 0x80000000, 0x80000000, { IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_MOD1, NPS_BITOP_SRC_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_MOD2, NPS_BITOP_SRC_POS2 }}, |
2503 | 2503 | |
2504 | 2504 | /* ext4 - (48 bit instruction). */ |
2505 | - { { "ext4b", 0x5801, 0xf81f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2505 | + { { "ext4b", 0x5801, 0xf81f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2506 | 2506 | 0x00000000, 0x80000000, { IGNORED, IGNORED, IGNORED, NPS_BITOP_INS_EXT, NPS_BITOP_SRC_POS1, NPS_BITOP_SRC_POS2, NPS_BITOP_DST_POS1, NPS_BITOP_DST_POS2 }}, |
2507 | 2507 | |
2508 | 2508 | /* ext4.cl - (48 bit instruction). */ |
2509 | - { { "ext4b", 0x5801, 0xf81f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2509 | + { { "ext4b", 0x5801, 0xf81f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2510 | 2510 | 0x80000000, 0x80000000, { IGNORED, IGNORED, NPS_BITOP_INS_EXT, NPS_BITOP_SRC_POS1, NPS_BITOP_SRC_POS2, NPS_BITOP_DST_POS1, NPS_BITOP_DST_POS2 }}, |
2511 | 2511 | |
2512 | 2512 | /* ins4 - (48 bit instruction). */ |
2513 | - { { "ins4b", 0x5802, 0xf81f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2513 | + { { "ins4b", 0x5802, 0xf81f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B_SHORT, NPS_R_SRC1_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2514 | 2514 | 0x00000000, 0x80000000, { IGNORED, IGNORED, IGNORED, NPS_BITOP_SRC_POS1, NPS_BITOP_SRC_POS2, NPS_BITOP_DST_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_INS_EXT }}, |
2515 | 2515 | |
2516 | 2516 | /* ins4.cl - (48 bit instruction). */ |
2517 | - { { "ins4b", 0x5802, 0xf81f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2517 | + { { "ins4b", 0x5802, 0xf81f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B_SHORT, NPS_R_SRC2_3B_SHORT, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2518 | 2518 | 0x80000000, 0x80000000, { IGNORED, IGNORED, NPS_BITOP_SRC_POS1, NPS_BITOP_SRC_POS2, NPS_BITOP_DST_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_INS_EXT }}, |
2519 | 2519 | |
2520 | 2520 | /* mov3b - (64 bit instruction). */ |
2521 | - { { "mov3b", 0x58100000, 0xf81f801f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3_POS4, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2521 | + { { "mov3b", 0x58100000, 0xf81f801f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3_POS4, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2522 | 2522 | 0x80000000, 0x80000000, { IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_MOD1, NPS_BITOP_SRC_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_MOD2, NPS_BITOP_SRC_POS2, IGNORED, NPS_BITOP_MOD3, NPS_BITOP_SRC_POS3 }}, |
2523 | 2523 | |
2524 | 2524 | /* mov4b - (64 bit instruction). */ |
2525 | - { { "mov4b", 0x58100000, 0xf81f0000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3, IGNORED, IGNORED, NPS_BITOP_DST_POS4, NPS_BITOP_MOD4_LSB, NPS_BITOP_SRC_POS4, LIMM }, { 0 }}, | |
2525 | + { { "mov4b", 0x58100000, 0xf81f0000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC1_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3, IGNORED, IGNORED, NPS_BITOP_DST_POS4, NPS_BITOP_MOD4_LSB, NPS_BITOP_SRC_POS4, LIMM }, { 0 }}, | |
2526 | 2526 | 0x00000000, 0x00000000, { IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_MOD1, NPS_BITOP_SRC_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_MOD2, NPS_BITOP_SRC_POS2, IGNORED, NPS_BITOP_MOD3, NPS_BITOP_SRC_POS3, IGNORED, NPS_BITOP_MOD4_MSB, IGNORED}}, |
2527 | 2527 | |
2528 | 2528 | /* mov3bcl - (64 bit instruction). */ |
2529 | - { { "mov3bcl", 0x58110000, 0xf81f801f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3_POS4, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2529 | + { { "mov3bcl", 0x58110000, 0xf81f801f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3_POS4, IGNORED, IGNORED, LIMM }, { 0 }}, | |
2530 | 2530 | 0x80000000, 0x80000000, { IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_MOD1, NPS_BITOP_SRC_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_MOD2, NPS_BITOP_SRC_POS2, IGNORED, NPS_BITOP_MOD3, NPS_BITOP_SRC_POS3 }}, |
2531 | 2531 | |
2532 | 2532 | /* mov4bcl - (64 bit instruction). */ |
2533 | - { { "mov4bcl", 0x58110000, 0xf81f0000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3, IGNORED, IGNORED, NPS_BITOP_DST_POS4, NPS_BITOP_MOD4_LSB, NPS_BITOP_SRC_POS4, LIMM }, { 0 }}, | |
2533 | + { { "mov4bcl", 0x58110000, 0xf81f0000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3, IGNORED, IGNORED, NPS_BITOP_DST_POS4, NPS_BITOP_MOD4_LSB, NPS_BITOP_SRC_POS4, LIMM }, { 0 }}, | |
2534 | 2534 | 0x00000000, 0x00000000, { IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_MOD1, NPS_BITOP_SRC_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_MOD2, NPS_BITOP_SRC_POS2, IGNORED, NPS_BITOP_MOD3, NPS_BITOP_SRC_POS3, IGNORED, NPS_BITOP_MOD4_MSB, IGNORED}}, |
2535 | 2535 | |
2536 | 2536 | /* mov3b.cl - (64 bit instruction). */ |
2537 | - { { "mov3b", 0x58110000, 0xf81f801f, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3_POS4, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2537 | + { { "mov3b", 0x58110000, 0xf81f801f, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3_POS4, IGNORED, IGNORED, LIMM }, { C_NPS_CL }}, | |
2538 | 2538 | 0x80000000, 0x80000000, { IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_MOD1, NPS_BITOP_SRC_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_MOD2, NPS_BITOP_SRC_POS2, IGNORED, NPS_BITOP_MOD3, NPS_BITOP_SRC_POS3 }}, |
2539 | 2539 | |
2540 | 2540 | /* mov4b.cl - (64 bit instruction). */ |
2541 | - { { "mov4b", 0x58110000, 0xf81f0000, ARC_OPCODE_NPS400, BITOP, NONE, { NPS_R_DST_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3, IGNORED, IGNORED, NPS_BITOP_DST_POS4, NPS_BITOP_MOD4_LSB, NPS_BITOP_SRC_POS4, LIMM }, { C_NPS_CL }}, | |
2541 | + { { "mov4b", 0x58110000, 0xf81f0000, ARC_OPCODE_ARC700, BITOP, NPS400, { NPS_R_DST_3B, NPS_R_SRC2_3B, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, IGNORED, NPS_BITOP_DST_POS3, IGNORED, IGNORED, NPS_BITOP_DST_POS4, NPS_BITOP_MOD4_LSB, NPS_BITOP_SRC_POS4, LIMM }, { C_NPS_CL }}, | |
2542 | 2542 | 0x00000000, 0x00000000, { IGNORED, IGNORED, NPS_BITOP_DST_POS1, NPS_BITOP_MOD1, NPS_BITOP_SRC_POS1, NPS_BITOP_DST_POS2, NPS_BITOP_MOD2, NPS_BITOP_SRC_POS2, IGNORED, NPS_BITOP_MOD3, NPS_BITOP_SRC_POS3, IGNORED, NPS_BITOP_MOD4_MSB, IGNORED}}, |
2543 | 2543 | }; |
2544 | 2544 |