OSDN Git Service

[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)
commitd82d9c3fbeeff7105981cd94b08b9d5b88821be3
tree592f3c40334727ec314f3d304e3945d549fdf65f
parentcb7edc0ee9905c3de6b2def952245bcbcb86ed40
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310498 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrAVX512.td
test/CodeGen/X86/avx512bw-intrinsics.ll
test/CodeGen/X86/avx512bwvl-intrinsics.ll
test/CodeGen/X86/vector-shuffle-128-v16.ll
test/CodeGen/X86/vector-shuffle-128-v8.ll
test/CodeGen/X86/vector-shuffle-256-v16.ll
test/CodeGen/X86/vector-shuffle-256-v32.ll
test/CodeGen/X86/vector-shuffle-512-v32.ll
test/CodeGen/X86/vector-shuffle-512-v64.ll