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

--- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Linus Torvalds from comment #10)
> (In reply to H.J. Lu from comment #7)
> > 
> > Good point.  I will remove "testq $imm31, mem".  I will add
> > "test{q,l,w} $imm8,%r{64,32,16}" to "testb $imm8,%r8" to -O3.
> 
> I'm assuming that you  limit the immediate to just 7 bits for the testb
> case. 
> 
> But I think you can do the register versions at -O2. Unlike the memory ops,
> there are no faulting behaviors there.

imm8 isn't sign-extended.  8 bits should work.

-- 
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