From bb45f1e99f86e1a52844fc8c98e81cf70ca81622 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 24 Oct 2018 06:13:36 +0000 Subject: [PATCH] [X86] Correct a bad isel predicate. Though I don't think it can be exposed. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86InstrAVX512.td b/lib/Target/X86/X86InstrAVX512.td index b2d0ce2bcd3..5550eb0061f 100644 --- a/lib/Target/X86/X86InstrAVX512.td +++ b/lib/Target/X86/X86InstrAVX512.td @@ -5901,7 +5901,7 @@ multiclass avx512_vptest_wb 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; defm BZ128_Alt : avx512_vptest_lowering; defm WZ256_Alt : avx512_vptest_lowering; -- 2.11.0