diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-09-05 13:36:14 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-09-05 13:36:14 +0000 |
commit | d946b91f6731245710d0cf1cb5b79e9de02c4a92 (patch) | |
tree | a305470ae88544a421be6efdc9d7b0ebc3a8ad22 /gas/config | |
parent | ea37ba09261f349ac2748da0d4f8f513184776f9 (diff) | |
download | gdb-d946b91f6731245710d0cf1cb5b79e9de02c4a92.zip gdb-d946b91f6731245710d0cf1cb5b79e9de02c4a92.tar.gz gdb-d946b91f6731245710d0cf1cb5b79e9de02c4a92.tar.bz2 |
2007-09-05 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (i386_index_check): Don't use RegRex
on the reg_type field.
(parse_real_register): Use `||' instead of `|'.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 9a39d43..a5ac843 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -4981,7 +4981,7 @@ i386_index_check (const char *operand_string) { /* 16bit checks. */ if ((i.base_reg - && ((i.base_reg->reg_type & (Reg16 | BaseIndex | RegRex)) + && ((i.base_reg->reg_type & (Reg16 | BaseIndex)) != (Reg16 | BaseIndex))) || (i.index_reg && (((i.index_reg->reg_type & (Reg16 | BaseIndex)) @@ -4996,9 +4996,9 @@ i386_index_check (const char *operand_string) { /* 32bit checks. */ if ((i.base_reg - && (i.base_reg->reg_type & (Reg32 | RegRex)) != Reg32) + && (i.base_reg->reg_type & Reg32) != Reg32) || (i.index_reg - && ((i.index_reg->reg_type & (Reg32 | BaseIndex | RegRex)) + && ((i.index_reg->reg_type & (Reg32 | BaseIndex)) != (Reg32 | BaseIndex)))) ok = 0; } @@ -5885,7 +5885,8 @@ parse_real_register (char *reg_string, char **end_op) } if (r != NULL - && ((r->reg_flags & (RegRex64 | RegRex)) | (r->reg_type & Reg64)) != 0 + && ((r->reg_flags & (RegRex64 | RegRex)) + || (r->reg_type & Reg64)) && (r->reg_type != Control || !(cpu_arch_flags & CpuSledgehammer)) && flag_code != CODE_64BIT) return (const reg_entry *) NULL; |