public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Jiang, Haochen" <haochen.jiang@intel.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: "Beulich, Jan" <JBeulich@suse.com>,
	"binutils@sourceware.org" <binutils@sourceware.org>
Subject: RE: [PATCH] x86: Remove unnecessary vex.w check for xh_mode in disassembler
Date: Tue, 6 Dec 2022 06:14:26 +0000	[thread overview]
Message-ID: <SA1PR11MB5946D4E159D6AB0EF8C893FFEC1B9@SA1PR11MB5946.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAMe9rOoT7Y9ztRqBHNBw47GU0D8AP-pd99Ls4-wp9O0m4suDyA@mail.gmail.com>

> -----Original Message-----
> From: H.J. Lu <hjl.tools@gmail.com>
> Sent: Tuesday, December 6, 2022 11:40 AM
> To: Jiang, Haochen <haochen.jiang@intel.com>
> Cc: Beulich, Jan <JBeulich@suse.com>; binutils@sourceware.org
> Subject: Re: [PATCH] x86: Remove unnecessary vex.w check for xh_mode in
> disassembler
> 
> On Mon, Dec 5, 2022 at 5:36 PM Jiang, Haochen <haochen.jiang@intel.com>
> wrote:
> >
> > > > Another reason for removing this check is because xh_mode with
> > > > broadcast usage should not indicate the vex.w bit. Instead it
> > > > should be handled by a W table entry.
> > >
> > > There are no broadcast insns using xh_mode, and you can't really
> > > mean embedded broadcast (because EVEX.W needs to be properly
> encoded
> > > there).
> > > Hence I don't follow what you're talking about here.
> >
> > Maybe this part is a little misleading. I will delete that in commit message.
> > What I actually mean is just like what you commented.
> >
> > I suppose using a W table entry in the future to encode here if not
> > using something like %XH.
> 
> If vex.w == 1 check is removed, disassembler will display the wrong
> instruction.

No, it will still print "{bad}" for all instructions currently since all of them are
using %XH, which will do this thing.

Maybe you are concerned about future instruction behavior w/o using %XH?

Haochen

> 
> > Haochen
> >
> > >
> > > The code change is okay, but if the above is to become the commit
> > > message, the raised question will need addressing first.
> > >
> > > Jan
> 
> 
> 
> --
> H.J.

  reply	other threads:[~2022-12-06  6:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-05  2:53 Haochen Jiang
2022-12-05 11:16 ` Jan Beulich
2022-12-06  1:36   ` Jiang, Haochen
2022-12-06  3:39     ` H.J. Lu
2022-12-06  6:14       ` Jiang, Haochen [this message]
2022-12-06  7:29     ` Jan Beulich
2022-12-06  8:00       ` Jiang, Haochen

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=SA1PR11MB5946D4E159D6AB0EF8C893FFEC1B9@SA1PR11MB5946.namprd11.prod.outlook.com \
    --to=haochen.jiang@intel.com \
    --cc=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).