bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/22871] Encode instructions of 64-bit operand without the REX_W


From: hjl.tools at gmail dot com
Subject: [Bug gas/22871] Encode instructions of 64-bit operand without the REX_W bit
Date: Wed, 21 Feb 2018 18:33:06 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22871

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Linus Torvalds from comment #4)
> (In reply to H.J. Lu from comment #3)
> > 
> > We need to keep
> > 
> >     andq    imm31, mem
> 
> Yes.
> 
> > and optimize testq to
> > 
> >     testl   imm31, mem
> 
> This one isn't quite as obvious. There *may* be microarchitectures that
> could have problems doing store buffer forwarding of a previous 64-bit write
> to a the 32-bit read of the "testl".
> 

I updated users/hjl/optimize branch to encode

testq $imm31, mem

as

testl $imm31, mem

only at -O2.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]