[PATCH v6 1/5] x86-64: Intel64 adjustments for insns dealing with far pointers

Jan Beulich jbeulich@suse.com
Wed Feb 12 10:23:00 GMT 2020


On 12.02.2020 11:05, Jan Beulich wrote:
> --- a/gas/config/tc-i386.c
> +++ b/gas/config/tc-i386.c
> @@ -5827,7 +5827,7 @@ match_template (char mnem_suffix)
>  	  break;
>  	case intel64:
>  	  /* -mintel64: Don't accept AMD64.  */
> -	  if (t->opcode_modifier.isa64 == AMD64)
> +	  if (t->opcode_modifier.isa64 == AMD64 && flag_code == CODE_64BIT)
>  	    continue;
>  	  break;
>  	}

An alternative would of course be to wrap the entire switch()
in "if (flag_code == CODE_64BIT)". I've chosen the variant
above simply to be as un-intrusive as possible.

Jan



More information about the Binutils mailing list