[PATCH v2] Support Intel FRED LKGS

Jiang, Haochen haochen.jiang@intel.com
Fri May 26 06:50:13 GMT 2023


> > I just take a look at the whole thing.
> >
> > From my perspective, if we are going to use the same pattern like SLDT
> > and STR. Does that mean for the instruction below:
> >
> > lldt %ax
> >
> > We will need to add a 66 prefix for gas to make it happen or it will drop
> to %eax?
> >
> > It will change the current assembler behavior. Is my understanding correct?
> 
> No. The assembler was changed already. The disassembler simply wants to
> follow suit. IOW the assembler already avoids emitting any unnecessary
> prefixes. The disassembler, otoh, should correctly represent redundant
> prefixes (and preferably not as raw ones, e.g. not "data16" but a 16-bit sized
> register or an insn suffix for AT&T memory operands).

So for all the registers, is the ideal case that we should not emit suffixes since the
register will always be 16 bit?

If we are using D, I suppose we will emit suffixes under the current scenario.

Haochen

> 
> Jan


More information about the Binutils mailing list