[PATCH][AVX512] Add CDI predicate to VPBROADCASTM* patterns

Cameron McInally cameron.mcinally at nyu.edu
Thu Jun 12 13:26:17 PDT 2014

Hey guys,

The AVX512 VPBROADCASTM* patterns are missing the HasCDI (Conflict
Detection Instructions) predicate. Attached is a small patch to add
that predicate to the patterns.

Note that I did not include a test case since AVX512CD is implicit
with AVX512F for all known targets (KNL only).

-------------- next part --------------
Index: lib/Target/X86/X86InstrAVX512.td
--- lib/Target/X86/X86InstrAVX512.td	(revision 210652)
+++ lib/Target/X86/X86InstrAVX512.td	(working copy)
@@ -517,10 +517,12 @@
                   []>, EVEX;
+let Predicates = [HasCDI] in {
 defm VPBROADCASTMW2D : avx512_mask_broadcast<0x3A, "vpbroadcastmw2d", VR512,
                                              VK16, v16i32, v16i1>, EVEX_V512;
 defm VPBROADCASTMB2Q : avx512_mask_broadcast<0x2A, "vpbroadcastmb2q", VR512,
                                             VK8, v8i64, v8i1>, EVEX_V512, VEX_W;
 // AVX-512 - VPERM

More information about the llvm-commits mailing list