summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2005-05-09 06:49:01 +0000
committerJan Beulich <jbeulich@novell.com>2005-05-09 06:49:01 +0000
commite44823cfe5be5913ed4f7d2fba28f4a07d280da7 (patch)
treea0eecf4aab42280036057cadbb627d87411854b5
parent089dfecdde9d6ef28dc2131603dab78e0668c32f (diff)
gas/
2005-05-09 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (parse_insn): Disallow use of prefix separator and comma in Intel mode. include/opcode/ 2005-05-09 Jan Beulich <jbeulich@novell.com> * i386.h (i386_optab): Add ht and hnt.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c7
-rw-r--r--include/opcode/ChangeLog4
-rw-r--r--include/opcode/i386.h2
4 files changed, 15 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a8cca7f626..cf43685815 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2005-05-09 Jan Beulich <jbeulich@novell.com>
+ * config/tc-i386.c (parse_insn): Disallow use of prefix separator
+ and comma in Intel mode.
+
+2005-05-09 Jan Beulich <jbeulich@novell.com>
+
* config/tc-i386.c (tc_x86_regname_to_dw2regnum): Correct 64-bit mode
names to match ABI. Add more registers for 32-bit and 64-bit modes.
Make name array static and const. Adjust lookup to account for NULL
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index be4d814ce7..baf3583ca1 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1606,8 +1606,9 @@ parse_insn (line, mnemonic)
}
if (!is_space_char (*l)
&& *l != END_OF_INSN
- && *l != PREFIX_SEPARATOR
- && *l != ',')
+ && (intel_syntax
+ || (*l != PREFIX_SEPARATOR
+ && *l != ',')))
{
as_bad (_("invalid character %s in mnemonic"),
output_invalid (*l));
@@ -1615,7 +1616,7 @@ parse_insn (line, mnemonic)
}
if (token_start == l)
{
- if (*l == PREFIX_SEPARATOR)
+ if (!intel_syntax && *l == PREFIX_SEPARATOR)
as_bad (_("expecting prefix; got nothing"));
else
as_bad (_("expecting mnemonic; got nothing"));
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index 1231bc1f49..bb3763fb03 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-09 Jan Beulich <jbeulich@novell.com>
+
+ * i386.h (i386_optab): Add ht and hnt.
+
2005-04-18 Mark Kettenis <kettenis@gnu.org>
* i386.h: Insert hyphens into selected VIA PadLock extensions.
diff --git a/include/opcode/i386.h b/include/opcode/i386.h
index a64ba4a79d..2b8c8b522c 100644
--- a/include/opcode/i386.h
+++ b/include/opcode/i386.h
@@ -876,6 +876,8 @@ static const template i386_optab[] =
{"repz", 0, 0xf3, X, 0, NoSuf|IsPrefix, { 0, 0, 0} },
{"repne", 0, 0xf2, X, 0, NoSuf|IsPrefix, { 0, 0, 0} },
{"repnz", 0, 0xf2, X, 0, NoSuf|IsPrefix, { 0, 0, 0} },
+{"ht", 0, 0x3e, X, 0, NoSuf|IsPrefix, { 0, 0, 0} },
+{"hnt", 0, 0x2e, X, 0, NoSuf|IsPrefix, { 0, 0, 0} },
{"rex", 0, 0x40, X, Cpu64, NoSuf|IsPrefix, { 0, 0, 0} },
{"rexz", 0, 0x41, X, Cpu64, NoSuf|IsPrefix, { 0, 0, 0} },
{"rexy", 0, 0x42, X, Cpu64, NoSuf|IsPrefix, { 0, 0, 0} },