DescriptionHandle imul, pcmpeq, pcmpgt.
Be sure to legalize 8-bit imul immediates (there is only the r/m form).
Add a test for that, and cover a couple of other ops too...
There is a one-byte-shorter form when Dest/Src0 == EAX and Src1 is not
an immediate, but that isn't taken advantage of.
Go ahead and add the optimization for 8-bit immediates for i16/i32
(not allowed for i8). It shows up sometimes in spec, e.g., to multiply by 10.
There is a lot of multiply by 4 as well, that we could strength-reduce.
BUG=none
R=stichnot@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=0ac50dcfc0b5d67663265e24a030b0d180f690e5
Patch Set 1 #Patch Set 2 : go ahead and optimize i8 #
Total comments: 1
Messages
Total messages: 4 (1 generated)
|