[X86] 512-bit VPAVG requires AVX512BW
authorMichael Kuperstein <mkuper@google.com>
Thu, 25 Aug 2016 17:17:46 +0000 (17:17 +0000)
committerMichael Kuperstein <mkuper@google.com>
Thu, 25 Aug 2016 17:17:46 +0000 (17:17 +0000)
commit40887c5566253d701168c58b2922651fe0c96224
tree3af7020210005ce48f11a7f1ccbc60037a62809a
parent6080bdbec370d0d1f4202ce2d21e1ed4b090c6ff
[X86] 512-bit VPAVG requires AVX512BW

Fix VPAVG detection to require AVX512BW, not AVX512F for 512-bit widths,
and change associated asserts to assert in the right direction...

This fixes PR29111.

llvm-svn: 279755
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avg.ll