diff options
author | Alan Modra <amodra@bigpond.net.au> | 2001-10-04 18:06:41 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2001-10-04 18:06:41 +0000 |
commit | d46ccd7b6647fceeb06c64bd6f792f708e24de47 (patch) | |
tree | 570afd0cdad0726860a9f14a0f162a0313c216e6 | |
parent | c887a7059a917e20e963b5b58d120a6705e43dae (diff) | |
download | binutils-redhat-d46ccd7b6647fceeb06c64bd6f792f708e24de47.tar.gz |
* config/tc-i386.c (parse_register): If not producing code for
x86_64, reject x86_64 register name matches.
(md_assemble): Remove now redundant check for x86_64 regs.
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 20 |
2 files changed, 13 insertions, 13 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index c400c24ce7..1079c792e2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2001-10-05 Alan Modra <amodra@bigpond.net.au> + + * config/tc-i386.c (parse_register): If not producing code for + x86_64, reject x86_64 register name matches. + (md_assemble): Remove now redundant check for x86_64 regs. + 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr> * config/tc-m68hc11.c (cmp_opcode): Define prototype. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index c23541382b..bbd4fc49a3 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -1903,19 +1903,6 @@ md_assemble (line) } } - if (i.reg_operands && flag_code < CODE_64BIT) - { - int op; - for (op = i.operands; --op >= 0;) - if ((i.types[op] & Reg) - && (i.op[op].regs->reg_flags & (RegRex64|RegRex))) - { - as_bad (_("Extended register `%%%s' available only in 64bit mode."), - i.op[op].regs->reg_name); - return; - } - } - /* If matched instruction specifies an explicit instruction mnemonic suffix, use it. */ if (i.tm.opcode_modifier & (Size16 | Size32 | Size64)) @@ -4481,6 +4468,13 @@ parse_register (reg_string, end_op) } } + if (r != NULL + && r->reg_flags & (RegRex64|RegRex) + && flag_code != CODE_64BIT) + { + return (const reg_entry *) NULL; + } + return r; } |