Bring the binutils_2_11_cvs_20011031 version of this to the HEAD branch.

This commit is contained in:
David E. O'Brien 2001-11-01 10:07:26 +00:00
parent 6bf697c5b5
commit f7565ff46f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85824
2 changed files with 11 additions and 15 deletions

View File

@ -1907,19 +1907,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))
@ -4485,6 +4472,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;
}

View File

@ -124,8 +124,9 @@ i[3456]86-*-sco*) targ_emul=i386coff ;;
i[3456]86-*-isc*) targ_emul=i386coff ;;
i[3456]86-*-lynxos*) targ_emul=i386lynx ;;
i[3456]86-*-coff) targ_emul=i386coff ;;
i[3456]86-*-rtemscoff*) targ_emul=i386coff ;;
i[3456]86-*-rtemself*) targ_emul=elf_i386 ;;
i[3456]86-*-rtems*) targ_emul=i386coff ;;
i[3456]86-*-rtems*) targ_emul=elf_i386 ;;
i[3456]86-*-bsd) targ_emul=i386bsd ;;
i[3456]86-*-bsd386) targ_emul=i386bsd ;;
i[3456]86-*-bsdi*) targ_emul=i386bsd ;;
@ -249,7 +250,8 @@ m68*-*-lynxos*) targ_emul=m68klynx ;;
m68*-hp*-netbsd*) targ_emul=m68k4knbsd ;;
m68*-*-netbsd*) targ_emul=m68knbsd ;;
m68*-*-psos*) targ_emul=m68kpsos ;;
m68*-*-rtems*) targ_emul=m68kcoff ;;
m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
m68*-*-rtems*) targ_emul=m68kelf ;;
hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
hppa*64*-*) targ_emul=elf64hppa ;;
hppa*-*-linux-gnu*) targ_emul=hppalinux ;;