Page MenuHomePhabricator

[X86] Lower v16i16->v8i16 truncate using an 'and' with 255, an extract_subvector, and a packuswb instruction.
ClosedPublic

Authored by craig.topper on Sat, Nov 17, 4:01 PM.

Details

Summary

This is an improvement over the two pshufbs and punpcklqdq we'd get otherwise.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Sat, Nov 17, 4:01 PM
RKSimon accepted this revision.Sun, Nov 18, 4:57 AM

LGTM - cheers

This revision is now accepted and ready to land.Sun, Nov 18, 4:57 AM
This revision was automatically updated to reflect the committed changes.