[llvm] 411eb87 - [ARM] Fix missing MVE_VMUL_qr predicate

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 12:43:16 PDT 2020


Author: David Green
Date: 2020-07-22T20:43:02+01:00
New Revision: 411eb87c7962ec817ab6bf7aa3c737a3159d2d4e

URL: https://github.com/llvm/llvm-project/commit/411eb87c7962ec817ab6bf7aa3c737a3159d2d4e
DIFF: https://github.com/llvm/llvm-project/commit/411eb87c7962ec817ab6bf7aa3c737a3159d2d4e.diff

LOG: [ARM] Fix missing MVE_VMUL_qr predicate

This was missed out of 1030e82598da, but hopefully fixes the issues
reported with NEON accidentally generating MVE instructions.

Added: 
    

Modified: 
    llvm/lib/Target/ARM/ARMInstrMVE.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/ARMInstrMVE.td b/llvm/lib/Target/ARM/ARMInstrMVE.td
index c3f8e4897bbb..c00fb15d6068 100644
--- a/llvm/lib/Target/ARM/ARMInstrMVE.td
+++ b/llvm/lib/Target/ARM/ARMInstrMVE.td
@@ -5312,8 +5312,10 @@ class MVE_VMUL_qr_int<string iname, string suffix, bits<2> size>
 
 multiclass MVE_VMUL_qr_int_m<MVEVectorVTInfo VTI> {
   def "" : MVE_VMUL_qr_int<"vmul", VTI.Suffix, VTI.Size>;
-  defm : MVE_TwoOpPatternDup<VTI, mul, int_arm_mve_mul_predicated, (? ),
-                             !cast<Instruction>(NAME), ARMimmOneV>;
+  let Predicates = [HasMVEInt] in {
+    defm : MVE_TwoOpPatternDup<VTI, mul, int_arm_mve_mul_predicated, (? ),
+                               !cast<Instruction>(NAME), ARMimmOneV>;
+  }
 }
 
 defm MVE_VMUL_qr_i8  : MVE_VMUL_qr_int_m<MVE_v16i8>;


        


More information about the llvm-commits mailing list