[PATCH 10/10] Support Intel PREFETCHI

Jan Beulich jbeulich@suse.com
Thu Oct 27 06:45:07 GMT 2022


On 27.10.2022 08:04, Cui, Lili wrote:> @@ -5057,9 +5057,15 @@ md_assemble (char *line)
>    if (!process_suffix ())
>      return;
>  
> -  /* Update operand types and check extended states.  */
> +  /* 1. Update operand types and check extended states. 
> +     2. Check IP-relative addressing for prefetchi.  */
>    for (j = 0; j < i.operands; j++)
>      {
> +      /* Check if IP-relative addressing requirements can be satisfied.  */
> +      if (i.tm.cpu_flags.bitfield.cpuprefetchi
> +	  && !(i.base_reg && i.base_reg->reg_num == RegIP))
> +	as_warn (_("only support RIP-relative address"));

One final suggestion:

	as_warn (_("`%s' only supports RIP-relative address"), i.tm.name);

And maybe also keep code and comment in sync as to the sequence of
things done.

Jan


More information about the Binutils mailing list