This is an archive of the discontinued LLVM Phabricator instance.

[X86] Consistently use 128 as the PSHUFB/VPPERM index for zero
ClosedPublic

Authored by craig.topper on Jul 10 2020, 1:52 PM.

Details

Summary

Bit 7 of the index controls zeroing, the other bits are ignored when bit 7 is set. Shuffle lowering was using 128 and shuffle combining was using 255. Seems like we should be consistent.

This patch changes shuffle combining to use 128 to match lowering.

Diff Detail

Event Timeline

craig.topper created this revision.Jul 10 2020, 1:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2020, 1:52 PM
RKSimon accepted this revision.Jul 12 2020, 1:40 AM

LGTM

This revision is now accepted and ready to land.Jul 12 2020, 1:40 AM
This revision was automatically updated to reflect the committed changes.