OSDN Git Service

[X86] Correct a bad isel predicate. Though I don't think it can be exposed.
authorCraig Topper <craig.topper@intel.com>
Wed, 24 Oct 2018 06:13:36 +0000 (06:13 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 24 Oct 2018 06:13:36 +0000 (06:13 +0000)
This B/W VPTEST instructions are only available with AVX512BW. But lowering should prevent any byte or word elements from getting to isel so this can't be exposed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345112 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrAVX512.td

index b2d0ce2..5550eb0 100644 (file)
@@ -5901,7 +5901,7 @@ multiclass avx512_vptest_wb<bits<8> opc, string OpcodeStr,
                             v16i8x_info, NAME#"B">, EVEX_V128;
   }
 
-  let Predicates = [HasAVX512, NoVLX] in {
+  let Predicates = [HasBWI, NoVLX] in {
   defm BZ256_Alt : avx512_vptest_lowering<OpNode, v64i8_info, v32i8x_info, NAME#"B">;
   defm BZ128_Alt : avx512_vptest_lowering<OpNode, v64i8_info, v16i8x_info, NAME#"B">;
   defm WZ256_Alt : avx512_vptest_lowering<OpNode, v32i16_info, v16i16x_info, NAME#"W">;