diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-18 00:31:54 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-18 00:31:54 +0200 |
| commit | 268a53de823a6750d6256ee1fb1e7707b4b45740 (patch) | |
| tree | 42c1799a9a82b2f7d9790ee9fe181d72a7274751 /support/sdbinutils/include/opcode/arc-attrs.h | |
| download | sdcc-gas-268a53de823a6750d6256ee1fb1e7707b4b45740.tar.gz | |
sdcc-3.9.0 fork implementing GNU assembler syntax
This fork aims to provide better support for stm8-binutils
Diffstat (limited to 'support/sdbinutils/include/opcode/arc-attrs.h')
| -rw-r--r-- | support/sdbinutils/include/opcode/arc-attrs.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/support/sdbinutils/include/opcode/arc-attrs.h b/support/sdbinutils/include/opcode/arc-attrs.h new file mode 100644 index 0000000..75fd7ae --- /dev/null +++ b/support/sdbinutils/include/opcode/arc-attrs.h @@ -0,0 +1,72 @@ +/* Copyright (C) 1994-2018 Free Software Foundation, Inc. + + Contributed by Claudiu Zissulescu (claziss@synopsys.com) + + This file is part of GAS, the GNU Assembler, GDB, the GNU debugger, and + the GNU Binutils. + + GAS/GDB is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + GAS/GDB is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GAS or GDB; see the file COPYING3. If not, write to + the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ + +#ifndef ATTRS_ARC_H +#define ATTRS_ARC_H + +#ifndef FEATURE_LIST_NAME +#define FEATURE_LIST_NAME feature_list +#endif + +/* A table with cpu features. */ +const struct feature_type +{ + unsigned feature; + unsigned cpus; + const char *attr; + const char *name; +} FEATURE_LIST_NAME [] = + { + { BTSCN, ARC_OPCODE_ARCALL, "BITSCAN", "bit-scan" }, + { CD, ARC_OPCODE_ARCV2, "CD", "code-density" }, + { DIV, ARC_OPCODE_ARCV2, "DIV_REM", "div/rem" }, + { DP, ARC_OPCODE_ARCv2HS, "FPUD", "double-precision FPU" }, + { DPA, ARC_OPCODE_ARCv2EM, "FPUDA", "double assist FP" }, + { DPX, ARC_OPCODE_ARCFPX, "DPFP", "double-precision FPX" }, + { LL64, ARC_OPCODE_ARCv2HS, "LL64", "double load/store" }, + { NPS400, ARC_OPCODE_ARC700, "NPS400", "nps400" }, + { QUARKSE1, ARC_OPCODE_ARCv2EM, "QUARKSE1", "QuarkSE-EM" }, + { QUARKSE2, ARC_OPCODE_ARCv2EM, "QUARKSE2", "QuarkSE-EM" }, + { SHFT1, ARC_OPCODE_ARCALL, "SA", "shift assist" }, + { SHFT2, ARC_OPCODE_ARCALL, "BS", "barrel-shifter" }, + { SWAP, ARC_OPCODE_ARCALL, "SWAP", "swap" }, + { SP, ARC_OPCODE_ARCV2, "FPUS", "single-precision FPU" }, + { SPX, ARC_OPCODE_ARCFPX, "SPFP", "single-precision FPX" } + }; + +#ifndef CONFLICT_LIST +#define CONFLICT_LIST conflict_list +#endif + +/* A table with conflicting features. */ +unsigned CONFLICT_LIST [] = { + NPS400 | SPX, + NPS400 | DPX, + DPX | DPA, + SP | DPX, + SP | SPX, + DP | DPX, + DP | SPX, + QUARKSE1 | DP, + QUARKSE1 | SP +}; +#endif |
