[X86] and
/or
/xor
could use 8-bit immediate for more constant arguments
#134474
Labels
and
/or
/xor
could use 8-bit immediate for more constant arguments
#134474
The functions:
for x86-64 with
-O3
(or even-Oz
) compile to:whereas they could be:
This apply:
|
for an immediate of 128..255;&
with an immediate of -256..-129; (x & -256
can furthermore bexor sil,sil
)^
with an immediate of 128..255.(uops.info says that the
(R8l, I8)
and(R64, I32)
variants in question are largely equivalent)compiler explorer
The text was updated successfully, but these errors were encountered: