[X86][AVX512] Choose correct registers in vpbroadcastb/w
authorGuy Blank <guy.blank@intel.com>
Wed, 9 Aug 2017 17:21:01 +0000 (17:21 +0000)
committerGuy Blank <guy.blank@intel.com>
Wed, 9 Aug 2017 17:21:01 +0000 (17:21 +0000)
commit7f60c991aedc100ac4b59c8a507a626762de24aa
treee95021f75a1689285814124f475f79893ff1b485
parent1e32550de6354f4cc618d48c7a7a046f895cb544
[X86][AVX512] Choose correct registers in vpbroadcastb/w

Fixes the vpbroadcastb/w instructions which use GPRs as source operands, to use the correct registers.
The full GPR should be used, and not the subregister, as it happens before the patch.

Fixes pr33795

Differential Revision:
https://reviews.llvm.org/D36479

llvm-svn: 310498
llvm/lib/Target/X86/X86InstrAVX512.td
llvm/test/CodeGen/X86/avx512bw-intrinsics.ll
llvm/test/CodeGen/X86/avx512bwvl-intrinsics.ll
llvm/test/CodeGen/X86/vector-shuffle-128-v16.ll
llvm/test/CodeGen/X86/vector-shuffle-128-v8.ll
llvm/test/CodeGen/X86/vector-shuffle-256-v16.ll
llvm/test/CodeGen/X86/vector-shuffle-256-v32.ll
llvm/test/CodeGen/X86/vector-shuffle-512-v32.ll
llvm/test/CodeGen/X86/vector-shuffle-512-v64.ll