[X86] Test SKX cpu in the vector-trunc-packus/ssat/usat.ll tests instad of min-legal...
authorCraig Topper <craig.topper@intel.com>
Sat, 12 Oct 2019 07:59:24 +0000 (07:59 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 12 Oct 2019 07:59:24 +0000 (07:59 +0000)
commit80a4feed7c4882e1c97e7ff3534422eb0a394621
tree849792562cd1ee379c093c482fe47dfeec88f7dc
parentaeaf5f8bd3009233c9d7fb786a393a6033ed93fa
[X86] Test SKX cpu in the vector-trunc-packus/ssat/usat.ll tests instad of min-legal-vector-width.ll

This adds "min-legal-vector-width"="256" function attributes to
all the tests for a larger than 256-bit input. Also switch any
larger than 512-bit inputs to use a load. This makes the
arguments consistent with min-legal-vector-width attribute which
should usually be at least as large as the arguments.

The SKX configuration will avoid using zmm registers on the
modified test cases. For many of them we should use something
closer to the AVX2 codegen with pack instructions instead of
the avx512 saturating truncates.

llvm-svn: 374642
llvm/test/CodeGen/X86/min-legal-vector-width.ll
llvm/test/CodeGen/X86/vector-trunc-packus.ll
llvm/test/CodeGen/X86/vector-trunc-ssat.ll
llvm/test/CodeGen/X86/vector-trunc-usat.ll