public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "Cui, Lili" <lili.cui@intel.com>
Cc: "Lu, Hongjiu" <hongjiu.lu@intel.com>,
	"binutils@sourceware.org" <binutils@sourceware.org>
Subject: Re: [PATCH V2 3/8] Support APX GPR32 with extend evex prefix
Date: Thu, 16 Nov 2023 16:15:44 +0100	[thread overview]
Message-ID: <27ec37fe-85c2-4afe-9e7b-b1cb704a2773@suse.com> (raw)
In-Reply-To: <SJ0PR11MB5600932DBD87D42A1E44FA909EB0A@SJ0PR11MB5600.namprd11.prod.outlook.com>

On 16.11.2023 16:10, Cui, Lili wrote:
> 
> 
>> -----Original Message-----
>> From: Jan Beulich <jbeulich@suse.com>
>> Sent: Thursday, November 16, 2023 9:58 PM
>> To: Cui, Lili <lili.cui@intel.com>
>> Cc: Lu, Hongjiu <hongjiu.lu@intel.com>; binutils@sourceware.org
>> Subject: Re: [PATCH V2 3/8] Support APX GPR32 with extend evex prefix
>>
>> On 15.11.2023 12:43, Cui, Lili wrote:
>>>> -----Original Message-----
>>>> From: Jan Beulich <jbeulich@suse.com>
>>>> Sent: Wednesday, November 15, 2023 5:12 PM
>>>>
>>>> On 15.11.2023 07:03, Cui, Lili wrote:
>>>>>>> --- /dev/null
>>>>>>> +++ b/opcodes/i386-dis-evex-x86-64.h
>>>>>>> @@ -0,0 +1,140 @@
>>>>>>> +  /* X86_64_EVEX_0F3849 */
>>>>>>> +  {
>>>>>>> +    { Bad_Opcode },
>>>>>>> +    { VEX_LEN_TABLE (VEX_LEN_0F3849_X86_64) },  },
>>>>>>> +  /* X86_64_EVEX_0F384B */
>>>>>>> +  {
>>>>>>> +    { Bad_Opcode },
>>>>>>> +    { VEX_LEN_TABLE (VEX_LEN_0F384B_X86_64) },  },
>>>>>>> +  /* X86_64_EVEX_0F38E0 */
>>>>>>> +  {
>>>>>>> +    { Bad_Opcode },
>>>>>>> +    { "cmpoxadd", { Mdq, Gdq, VexGdq }, PREFIX_DATA },  },
>>>>>>
>>>>>> This and its sibling entries look to again fully match
>>>> X86_64_VEX_0F38E<n>.
>>>>>
>>>>> It cannot be moved to up level, it needs to go through
>>>>> i386-dis-evex-x86-64.h
>>>>
>>>> I didn't suggest to move up a level. I suggested to re-use the
>>>> existing VEX entries.
>>>>
>>>
>>> It's currently in the x86-64 table, it's a bit weird to revisit the x86-64 table,
>> and moving up one level won't work.
>>>
>>> { X86_64_TABLE (X86_64_VEX_0F38E0) }
>>>
>>>   /* X86_64_VEX_0F38E0 */
>>>   {
>>>     { Bad_Opcode },
>>>     { "cmpoxadd", { Mdq, Gdq, VexGdq }, PREFIX_DATA },
>>>   },
>>
>> Again - I never suggested to move up a level. I also didn't suggest to re-visit
>> x86_64_table[]. I merely requested to re-use X86_64_VEX_0F38Ex in the
>> evex_table[] entries, instead of adding 16 (each) identical new entries to
>> x86_64_table[] with 16 new X86_64_EVEX_0F38Ex enumerators.
>>
> 
> We need to go through this virtual table USE_X86_64_EVEX_FROM_VEX_TABLE to mark event_type = evex_from_vex;

Sure, but instead of

    { X86_64_EVEX_FROM_VEX_TABLE (X86_64_EVEX_0F38E0) },

why can't you use

    { X86_64_EVEX_FROM_VEX_TABLE (X86_64_VEX_0F38E0) },

? The handling of USE_X86_64_EVEX_FROM_VEX_TABLE simply falls through
to that of USE_X86_64_TABLE.

Jan

  reply	other threads:[~2023-11-16 15:15 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-03 16:50 Cui, Lili
2023-11-06 17:07 ` Jan Beulich
2023-11-13  5:53   ` Cui, Lili
2023-11-13  8:34     ` Jan Beulich
2023-11-14  3:12       ` Cui, Lili
2023-11-14 10:29         ` Jan Beulich
2023-11-15  8:39           ` Cui, Lili
2023-11-07 13:29 ` Jan Beulich
2023-11-09  8:38   ` Cui, Lili
2023-11-09 11:07     ` Jan Beulich
2023-11-09 11:12     ` Jan Beulich
2023-11-07 14:53 ` Jan Beulich
2023-11-09 12:31   ` Cui, Lili
2023-11-09 13:05     ` Jan Beulich
2023-11-09 14:57       ` Cui, Lili
2023-11-09 15:39         ` Jan Beulich
2023-11-14  7:42   ` Cui, Lili
2023-11-14 10:40     ` Jan Beulich
2023-11-14 14:46       ` Cui, Lili
2023-11-15  6:03   ` Cui, Lili
2023-11-15  9:11     ` Jan Beulich
2023-11-15 11:43       ` Cui, Lili
2023-11-16 13:57         ` Jan Beulich
2023-11-16 15:10           ` Cui, Lili
2023-11-16 15:15             ` Jan Beulich [this message]
2023-11-16 16:12           ` Cui, Lili

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=27ec37fe-85c2-4afe-9e7b-b1cb704a2773@suse.com \
    --to=jbeulich@suse.com \
    --cc=binutils@sourceware.org \
    --cc=hongjiu.lu@intel.com \
    --cc=lili.cui@intel.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).