public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: Binutils <binutils@sourceware.org>
Subject: Re: [PATCH] x86: infer No_*Suf from other insn attributes
Date: Thu, 17 Nov 2022 09:50:54 +0100	[thread overview]
Message-ID: <37133d5e-f51c-6b69-2c9f-41aa6aea5810@suse.com> (raw)
In-Reply-To: <CAMe9rOruh52qWi94zxWZyWxtVyn-zOMZQmmFVjCRXSiQ4wbKiQ@mail.gmail.com>

On 17.11.2022 02:54, H.J. Lu wrote:
> On Mon, Nov 14, 2022 at 11:27 PM Jan Beulich <jbeulich@suse.com> wrote:
>>
>> On 15.11.2022 00:33, H.J. Lu wrote:
>>> On Mon, Nov 14, 2022 at 8:12 AM Jan Beulich <jbeulich@suse.com> wrote:
>>>> --- a/opcodes/i386-opc.tbl
>>>> +++ b/opcodes/i386-opc.tbl
>>>> @@ -75,12 +75,17 @@
>>>>  #define Size32 Size=SIZE32
>>>>  #define Size64 Size=SIZE64
>>>>
>>>> +#define IsPrefix IsPrefix|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf
>>>> +
>>>
>>> I prefer to add
>>>
>>> #define No_Suf No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf
>>>
>>> to cover more templates.
>>
>> Iirc you said so two years ago already in the context of "x86: imply
>> all No_*Suf when none is set in a template". Yet as before I don't
>> like going that route, as that still leaves clutter on the respective
>> lines (even if it's less clutter then). Plus the ultimate goal, as
>> also said back then, ought to be to move from negative to positive
>> forms. Doing things the way done here will avoid touching all those
>> lines again which are being touched here.
>>
>> As a compromise I'd accept introducing NoSuf (or No_Suf) in addition
>> to the changes done here, for use on applicable lines not touched
>> here already, and for use in the #define-s I'm adding. I'd prefer
>> this to be a separate, subsequent patch though (to limit patch size,
>> focusing on one transformation at a time. (I could introduce the new
>> macro in a prereq patch, using it for only AddrPrefixOpReg right away,
>> then have the patch here use it in the new macros, and finally add one
>> to use the new macro on the remaining applicable templates.)
> 
> An explicit NoSuf (or No_Suf) is better.

But why? As said - once switching to expressing permitted suffixes in a
"positive" way that'll lead to touching again _all_ the templates I'm
touching here (and of course many more I'm not touching here). Plus
that's still one more item on (often long) lines which don't really need
it. Plus, just to restate what the description says, we're already doing
this with AddrPrefixOpReg.

I'd really like to see a way forward here - this is now my 2nd attempt
that you're in the process of rejecting. If you insist on going the
NoSuf-everywhere route (and hence you're not willing to accept the
suggested compromise), then may I please ask that you make such a patch
(within a reasonable time frame), for me to then re-base over? I'm not
going to submit patches which I see clear downsides with. Yet further
work I have pending wants this sorted (at least to limit patch size
some). To be specific, I'm meaning to eliminate the bogus
LONG_DOUBLE_MNEM_SUFFIX and then also No_ldSuf, which prior to the patch
here means touching about every insn template. Yet even beyond that
the size of many patches I have pending benefits from this size / line
length reduction, just like the opcode table itself does.

Jan

  reply	other threads:[~2022-11-17  8:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-14 16:12 Jan Beulich
2022-11-14 23:33 ` H.J. Lu
2022-11-15  7:27   ` Jan Beulich
2022-11-17  1:54     ` H.J. Lu
2022-11-17  8:50       ` Jan Beulich [this message]
2022-11-17 17:21         ` H.J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37133d5e-f51c-6b69-2c9f-41aa6aea5810@suse.com \
    --to=jbeulich@suse.com \
    --cc=binutils@sourceware.org \
    --cc=hjl.tools@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).