[X86][AVX] Add additional 256/512-bit test cases for PACKSS/PACKUS shuffle patterns
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 31 Mar 2020 21:40:33 +0000 (22:40 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 1 Apr 2020 07:19:03 +0000 (08:19 +0100)
commitf9f401dba179038591ad066bfa063cd5f3d5b4d8
tree238fe64c81eb52e81e8609e5672ef5b0ca77793e
parent3c9064ed963ebfc59e4164cbea0b932734785813
[X86][AVX] Add additional 256/512-bit test cases for PACKSS/PACKUS shuffle patterns

Also add lowerShuffleWithPACK call to lowerV32I16Shuffle - shuffle combining was catching it but we avoid a lot of temporary shuffle creations if we catch it at lowering first.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-shuffle-256-v16.ll
llvm/test/CodeGen/X86/vector-shuffle-512-v32.ll
llvm/test/CodeGen/X86/vector-shuffle-512-v64.ll
llvm/test/CodeGen/X86/vector-shuffle-combining-avx512bw.ll