diff options
author | Sudakshina Das <sudi.das@arm.com> | 2019-05-01 17:14:01 +0100 |
---|---|---|
committer | Sudakshina Das <sudi.das@arm.com> | 2019-05-01 17:14:01 +0100 |
commit | b83b4b138298d2a6bfab11f533d7e315c0a1c97b (patch) | |
tree | 78aa7ea03472fb0ee62aec2e1bcb7b5297ff42d6 /opcodes/aarch64-asm-2.c | |
parent | 2ecde2b63245d4794a4967f318772e7166feb310 (diff) | |
download | gdb-b83b4b138298d2a6bfab11f533d7e315c0a1c97b.zip gdb-b83b4b138298d2a6bfab11f533d7e315c0a1c97b.tar.gz gdb-b83b4b138298d2a6bfab11f533d7e315c0a1c97b.tar.bz2 |
[BINUTILS, AArch64] Enable Transactional Memory Extension
This patch enables the new Transactional Memory Extension added recently
as part of Arm's new architecture technologies.
We introduce a new optional extension "tme" to enable this. The following
instructions are part of the extension:
* tstart <Xt>
* ttest <Xt>
* tcommit
* tcancel #<imm>
The ISA for the above can be found here:
https://developer.arm.com/docs/ddi0602/latest/base-instructions-alphabetic-order
*** gas/ChangeLog ***
2019-05-01 Sudakshina Das <sudi.das@arm.com>
* config/tc-aarch64.c (parse_operands): Add case for
AARCH64_OPND_TME_UIMM16.
(aarch64_features): Add "tme".
* doc/c-aarch64.texi: Document the same.
* testsuite/gas/aarch64/tme-invalid.d: New test.
* testsuite/gas/aarch64/tme-invalid.l: New test.
* testsuite/gas/aarch64/tme-invalid.s: New test.
* testsuite/gas/aarch64/tme.d: New test.
* testsuite/gas/aarch64/tme.s: New test.
*** include/ChangeLog ***
2019-05-01 Sudakshina Das <sudi.das@arm.com>
* opcode/aarch64.h (AARCH64_FEATURE_TME): New.
(enum aarch64_opnd): Add AARCH64_OPND_TME_UIMM16.
*** opcodes/ChangeLog ***
2019-05-01 Sudakshina Das <sudi.das@arm.com>
* aarch64-asm-2.c: Regenerated.
* aarch64-dis-2.c: Regenerated.
* aarch64-opc-2.c: Regenerated.
* aarch64-opc.c (operand_general_constraint_met_p): Add case for
AARCH64_OPND_TME_UIMM16.
(aarch64_print_operand): Likewise.
* aarch64-tbl.h (QL_IMM_NIL): New.
(TME): New.
(_TME_INSN): New.
(struct aarch64_opcode): Add tstart, tcommit, ttest and tcancel.
Diffstat (limited to 'opcodes/aarch64-asm-2.c')
-rw-r--r-- | opcodes/aarch64-asm-2.c | 275 |
1 files changed, 138 insertions, 137 deletions
diff --git a/opcodes/aarch64-asm-2.c b/opcodes/aarch64-asm-2.c index f361556..c7f8e8b 100644 --- a/opcodes/aarch64-asm-2.c +++ b/opcodes/aarch64-asm-2.c @@ -426,165 +426,165 @@ aarch64_find_real_opcode (const aarch64_opcode *opcode) case 1183: /* movz */ value = 1183; /* --> movz. */ break; - case 1230: /* autibsp */ - case 1229: /* autibz */ - case 1228: /* autiasp */ - case 1227: /* autiaz */ - case 1226: /* pacibsp */ - case 1225: /* pacibz */ - case 1224: /* paciasp */ - case 1223: /* paciaz */ - case 1204: /* psb */ - case 1203: /* esb */ - case 1202: /* autib1716 */ - case 1201: /* autia1716 */ - case 1200: /* pacib1716 */ - case 1199: /* pacia1716 */ - case 1198: /* xpaclri */ - case 1197: /* sevl */ - case 1196: /* sev */ - case 1195: /* wfi */ - case 1194: /* wfe */ - case 1193: /* yield */ - case 1192: /* bti */ - case 1191: /* csdb */ - case 1190: /* nop */ - case 1189: /* hint */ - value = 1189; /* --> hint. */ - break; - case 1208: /* pssbb */ - case 1207: /* ssbb */ - case 1206: /* dsb */ - value = 1206; /* --> dsb. */ - break; - case 1219: /* cpp */ - case 1218: /* dvp */ - case 1217: /* cfp */ - case 1216: /* tlbi */ - case 1215: /* ic */ - case 1214: /* dc */ - case 1213: /* at */ - case 1212: /* sys */ - value = 1212; /* --> sys. */ - break; - case 2028: /* bic */ - case 1278: /* and */ - value = 1278; /* --> and. */ + case 1234: /* autibsp */ + case 1233: /* autibz */ + case 1232: /* autiasp */ + case 1231: /* autiaz */ + case 1230: /* pacibsp */ + case 1229: /* pacibz */ + case 1228: /* paciasp */ + case 1227: /* paciaz */ + case 1208: /* psb */ + case 1207: /* esb */ + case 1206: /* autib1716 */ + case 1205: /* autia1716 */ + case 1204: /* pacib1716 */ + case 1203: /* pacia1716 */ + case 1202: /* xpaclri */ + case 1201: /* sevl */ + case 1200: /* sev */ + case 1199: /* wfi */ + case 1198: /* wfe */ + case 1197: /* yield */ + case 1196: /* bti */ + case 1195: /* csdb */ + case 1194: /* nop */ + case 1193: /* hint */ + value = 1193; /* --> hint. */ + break; + case 1212: /* pssbb */ + case 1211: /* ssbb */ + case 1210: /* dsb */ + value = 1210; /* --> dsb. */ + break; + case 1223: /* cpp */ + case 1222: /* dvp */ + case 1221: /* cfp */ + case 1220: /* tlbi */ + case 1219: /* ic */ + case 1218: /* dc */ + case 1217: /* at */ + case 1216: /* sys */ + value = 1216; /* --> sys. */ + break; + case 2032: /* bic */ + case 1282: /* and */ + value = 1282; /* --> and. */ + break; + case 1265: /* mov */ + case 1284: /* and */ + value = 1284; /* --> and. */ + break; + case 1269: /* movs */ + case 1285: /* ands */ + value = 1285; /* --> ands. */ + break; + case 2033: /* cmple */ + case 1320: /* cmpge */ + value = 1320; /* --> cmpge. */ + break; + case 2036: /* cmplt */ + case 1323: /* cmpgt */ + value = 1323; /* --> cmpgt. */ + break; + case 2034: /* cmplo */ + case 1325: /* cmphi */ + value = 1325; /* --> cmphi. */ + break; + case 2035: /* cmpls */ + case 1328: /* cmphs */ + value = 1328; /* --> cmphs. */ break; - case 1261: /* mov */ - case 1280: /* and */ - value = 1280; /* --> and. */ - break; - case 1265: /* movs */ - case 1281: /* ands */ - value = 1281; /* --> ands. */ + case 1262: /* mov */ + case 1350: /* cpy */ + value = 1350; /* --> cpy. */ break; - case 2029: /* cmple */ - case 1316: /* cmpge */ - value = 1316; /* --> cmpge. */ + case 1264: /* mov */ + case 1351: /* cpy */ + value = 1351; /* --> cpy. */ break; - case 2032: /* cmplt */ - case 1319: /* cmpgt */ - value = 1319; /* --> cmpgt. */ + case 2043: /* fmov */ + case 1267: /* mov */ + case 1352: /* cpy */ + value = 1352; /* --> cpy. */ break; - case 2030: /* cmplo */ - case 1321: /* cmphi */ - value = 1321; /* --> cmphi. */ + case 1257: /* mov */ + case 1364: /* dup */ + value = 1364; /* --> dup. */ break; - case 2031: /* cmpls */ - case 1324: /* cmphs */ - value = 1324; /* --> cmphs. */ + case 1259: /* mov */ + case 1256: /* mov */ + case 1365: /* dup */ + value = 1365; /* --> dup. */ break; - case 1258: /* mov */ - case 1346: /* cpy */ - value = 1346; /* --> cpy. */ + case 2042: /* fmov */ + case 1261: /* mov */ + case 1366: /* dup */ + value = 1366; /* --> dup. */ break; case 1260: /* mov */ - case 1347: /* cpy */ - value = 1347; /* --> cpy. */ - break; - case 2039: /* fmov */ - case 1263: /* mov */ - case 1348: /* cpy */ - value = 1348; /* --> cpy. */ - break; - case 1253: /* mov */ - case 1360: /* dup */ - value = 1360; /* --> dup. */ - break; - case 1255: /* mov */ - case 1252: /* mov */ - case 1361: /* dup */ - value = 1361; /* --> dup. */ - break; - case 2038: /* fmov */ - case 1257: /* mov */ - case 1362: /* dup */ - value = 1362; /* --> dup. */ + case 1367: /* dupm */ + value = 1367; /* --> dupm. */ break; - case 1256: /* mov */ - case 1363: /* dupm */ - value = 1363; /* --> dupm. */ - break; - case 2033: /* eon */ - case 1365: /* eor */ - value = 1365; /* --> eor. */ + case 2037: /* eon */ + case 1369: /* eor */ + value = 1369; /* --> eor. */ break; - case 1266: /* not */ - case 1367: /* eor */ - value = 1367; /* --> eor. */ + case 1270: /* not */ + case 1371: /* eor */ + value = 1371; /* --> eor. */ break; - case 1267: /* nots */ - case 1368: /* eors */ - value = 1368; /* --> eors. */ + case 1271: /* nots */ + case 1372: /* eors */ + value = 1372; /* --> eors. */ break; - case 2034: /* facle */ - case 1373: /* facge */ - value = 1373; /* --> facge. */ + case 2038: /* facle */ + case 1377: /* facge */ + value = 1377; /* --> facge. */ break; - case 2035: /* faclt */ - case 1374: /* facgt */ - value = 1374; /* --> facgt. */ + case 2039: /* faclt */ + case 1378: /* facgt */ + value = 1378; /* --> facgt. */ break; - case 2036: /* fcmle */ - case 1387: /* fcmge */ - value = 1387; /* --> fcmge. */ + case 2040: /* fcmle */ + case 1391: /* fcmge */ + value = 1391; /* --> fcmge. */ break; - case 2037: /* fcmlt */ - case 1389: /* fcmgt */ - value = 1389; /* --> fcmgt. */ + case 2041: /* fcmlt */ + case 1393: /* fcmgt */ + value = 1393; /* --> fcmgt. */ break; - case 1250: /* fmov */ - case 1395: /* fcpy */ - value = 1395; /* --> fcpy. */ + case 1254: /* fmov */ + case 1399: /* fcpy */ + value = 1399; /* --> fcpy. */ break; - case 1249: /* fmov */ - case 1418: /* fdup */ - value = 1418; /* --> fdup. */ + case 1253: /* fmov */ + case 1422: /* fdup */ + value = 1422; /* --> fdup. */ break; - case 1251: /* mov */ - case 1749: /* orr */ - value = 1749; /* --> orr. */ + case 1255: /* mov */ + case 1753: /* orr */ + value = 1753; /* --> orr. */ break; - case 2040: /* orn */ - case 1750: /* orr */ - value = 1750; /* --> orr. */ + case 2044: /* orn */ + case 1754: /* orr */ + value = 1754; /* --> orr. */ break; - case 1254: /* mov */ - case 1752: /* orr */ - value = 1752; /* --> orr. */ + case 1258: /* mov */ + case 1756: /* orr */ + value = 1756; /* --> orr. */ break; - case 1264: /* movs */ - case 1753: /* orrs */ - value = 1753; /* --> orrs. */ + case 1268: /* movs */ + case 1757: /* orrs */ + value = 1757; /* --> orrs. */ break; - case 1259: /* mov */ - case 1815: /* sel */ - value = 1815; /* --> sel. */ + case 1263: /* mov */ + case 1819: /* sel */ + value = 1819; /* --> sel. */ break; - case 1262: /* mov */ - case 1816: /* sel */ - value = 1816; /* --> sel. */ + case 1266: /* mov */ + case 1820: /* sel */ + value = 1820; /* --> sel. */ break; default: return NULL; } @@ -660,7 +660,7 @@ aarch64_insert_operand (const aarch64_operand *self, case 32: case 33: case 34: - case 199: + case 200: return aarch64_ins_reglane (self, info, code, inst, errors); case 35: return aarch64_ins_reglist (self, info, code, inst, errors); @@ -704,6 +704,7 @@ aarch64_insert_operand (const aarch64_operand *self, case 179: case 180: case 181: + case 199: return aarch64_ins_imm (self, info, code, inst, errors); case 43: case 44: |