public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Hongyu Wang <wwwhhhyyy333@gmail.com>
Cc: "H.J. Lu" <hjl.tools@gmail.com>,
	kong lingling <lingling.kong7@gmail.com>,
	Binutils <binutils@sourceware.org>,
	"Kong, Lingling" <lingling.kong@intel.com>
Subject: Re: [PATCH] x86-64: Support APX NF TLS IE with 2 operands
Date: Wed, 3 Jul 2024 12:13:44 +0200	[thread overview]
Message-ID: <bb1ae405-da43-4253-ac13-40224d351843@suse.com> (raw)
In-Reply-To: <CA+OydWkg-JC990+KDZvrf+yx-QAe5GvCruwttmHxiXPFU=K44A@mail.gmail.com>

On 03.07.2024 12:01, Hongyu Wang wrote:
> Jan Beulich <jbeulich@suse.com> 于2024年7月3日周三 17:23写道:
>>
>> On 03.07.2024 09:49, H.J. Lu wrote:
>>> Have I missed something? I haven't seen any testcases.
>>
>> From my description you could have made one yourself, if you really didn't
>> believe what I was saying. Here you go:
>>
>>         .text
>> gottpoff:
>>         .irp op, add, sub
>>         \op     foo@gottpoff(%rip), %rax
>>         \op     foo@gottpoff(%rip), %r16
>>         \op     foo@gottpoff(%rip), %rax, %rcx
>>         \op     %rax, foo@gottpoff(%rip), %rcx
>>         {nf} \op foo@gottpoff(%rip), %rax
>>         .endr
>>
>>         popcnt  foo@gottpoff(%rip), %rax
>>         popcnt  foo@gottpoff(%rip), %r16
>>         {nf} popcnt foo@gottpoff(%rip), %rax
>>
>>         adox    foo@gottpoff(%rip), %rax
>>         adox    foo@gottpoff(%rip), %r16
>>
> 
> These instructions are actually allowed with the newly added
> relocation type R_X86_64_CODE_{5,6}_GOTTPOFF, but there is no chance
> for compiler to generate such code in TLS sequence.
> I'm not sure how the logic can be simplified, we still need to check
> for each operands for the allowed case, while we can add more ops
> other than just MN_add.

Why would operands need checking? Why would they not need checking in
the legacy encoding case? My present plan is to simply permit anything
in EVEX map 4. Unless of course we want to tighten what's permitted as
legacy encodings.

Jan

  reply	other threads:[~2024-07-03 10:13 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-03  1:19 kong lingling
2024-07-03  1:55 ` H.J. Lu
2024-07-03  6:43   ` Jan Beulich
2024-07-03  6:48     ` H.J. Lu
2024-07-03  7:10       ` Jan Beulich
2024-07-03  7:14         ` H.J. Lu
2024-07-03  7:27           ` Jan Beulich
2024-07-03  7:49             ` H.J. Lu
2024-07-03  9:23               ` Jan Beulich
2024-07-03  9:43                 ` H.J. Lu
2024-07-03 10:11                   ` Jan Beulich
2024-07-03 10:20                     ` H.J. Lu
2024-07-03 10:42                       ` Jan Beulich
2024-07-03 10:51                         ` H.J. Lu
2024-07-03 10:01                 ` Hongyu Wang
2024-07-03 10:13                   ` Jan Beulich [this message]
2024-07-03  7:58             ` Kong, Lingling
2024-07-03  8:10               ` Jan Beulich
2024-07-03 12:37                 ` Kong, Lingling
2024-07-03 14:11                   ` Jan Beulich
2024-07-04  7:03                     ` Kong, Lingling
2024-07-04  7:38                       ` Jan Beulich

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=bb1ae405-da43-4253-ac13-40224d351843@suse.com \
    --to=jbeulich@suse.com \
    --cc=binutils@sourceware.org \
    --cc=hjl.tools@gmail.com \
    --cc=lingling.kong7@gmail.com \
    --cc=lingling.kong@intel.com \
    --cc=wwwhhhyyy333@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).