Skip to content
Commit 908f833e authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[X86][SSE] combineTruncateWithSat - use truncateVectorWithPACK to chain PACKSS...

[X86][SSE] combineTruncateWithSat - use truncateVectorWithPACK to chain PACKSS vXi32-vXi8 saturated truncation

We can use PACKSS to saturate each stage of the chain: PACKSSDW down to [-32768,32767] and then PACKSSWB to [-128,127].

PACKUS is a little trickier and will be handled in a separate patch.

llvm-svn: 325235
parent 6acc0e55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment