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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to