[X86][SSE] Add PACKSS support for truncation of clamped values
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 6 Feb 2018 12:16:10 +0000 (12:16 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 6 Feb 2018 12:16:10 +0000 (12:16 +0000)
commit90a237bf83f5a583bb6bb329d17cf1e614044c5d
treece7e58555728d25f678c09d8a4d8966d874690ad
parent022765de662ae841b3927cfb4152fa3fe875cf15
[X86][SSE] Add PACKSS support for truncation of clamped values

Followup to D42544 that matches PACKSSWB cases for non-AVX512, SSE and PACKSSDW cases will have to wait until we can add support for general SMIN/SMAX matching.

llvm-svn: 324339
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-trunc-ssat.ll