summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>1999-08-29 23:44:27 +0000
committerAlan Modra <amodra@bigpond.net.au>1999-08-29 23:44:27 +0000
commit71a9212ed2d607fdcb93108bcc6baeff2a09cff2 (patch)
treed938388ea8b096c6f2f3ab025c6682aae32c7f7b /include
parent7e002e2d7abc10981f4f503fe5da21394ab3a7f0 (diff)
downloadgdb-71a9212ed2d607fdcb93108bcc6baeff2a09cff2.tar.gz
Allow spaces in i386 FP reg names, eg. %st ( 1 ).
Diffstat (limited to 'include')
-rw-r--r--include/opcode/ChangeLog6
-rw-r--r--include/opcode/i386.h24
2 files changed, 20 insertions, 10 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index d59e716cc46..ef0da73bff3 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,9 @@
+1999-08-29 Alan Modra <alan@spri.levels.unisa.edu.au>
+
+ * i386.h (i386_regtab): Move %st to top of table, and split off
+ other fp reg entries.
+ (i386_float_regtab): To here.
+
Sat Aug 28 00:25:25 1999 Jerry Quinn <jquinn@nortelnetworks.com>
* hppa.h (pa_opcodes): Replace 'f' by 'v'. Prefix float register args
diff --git a/include/opcode/i386.h b/include/opcode/i386.h
index 3df27f212df..7e3a56464bb 100644
--- a/include/opcode/i386.h
+++ b/include/opcode/i386.h
@@ -1061,6 +1061,8 @@ static const template i386_optab[] = {
/* 386 register table */
static const reg_entry i386_regtab[] = {
+ /* make %st first as we test for it */
+ {"st", FloatReg|FloatAcc, 0},
/* 8 bit regs */
{"al", Reg8|Acc, 0},
{"cl", Reg8|ShiftCount, 1},
@@ -1130,16 +1132,7 @@ static const reg_entry i386_regtab[] = {
{"tr5", Test, 5},
{"tr6", Test, 6},
{"tr7", Test, 7},
- /* float registers */
- {"st(0)", FloatReg|FloatAcc, 0},
- {"st", FloatReg|FloatAcc, 0},
- {"st(1)", FloatReg, 1},
- {"st(2)", FloatReg, 2},
- {"st(3)", FloatReg, 3},
- {"st(4)", FloatReg, 4},
- {"st(5)", FloatReg, 5},
- {"st(6)", FloatReg, 6},
- {"st(7)", FloatReg, 7},
+ /* mmx and simd registers */
{"mm0", RegMMX, 0},
{"mm1", RegMMX, 1},
{"mm2", RegMMX, 2},
@@ -1158,6 +1151,17 @@ static const reg_entry i386_regtab[] = {
{"xmm7", RegXMM, 7}
};
+static const reg_entry i386_float_regtab[] = {
+ {"st(0)", FloatReg|FloatAcc, 0},
+ {"st(1)", FloatReg, 1},
+ {"st(2)", FloatReg, 2},
+ {"st(3)", FloatReg, 3},
+ {"st(4)", FloatReg, 4},
+ {"st(5)", FloatReg, 5},
+ {"st(6)", FloatReg, 6},
+ {"st(7)", FloatReg, 7}
+};
+
#define MAX_REG_NAME_SIZE 8 /* for parsing register names from input */
/* segment stuff */