[AArch64] Expand vector SDIVREM/UDIVREM operations.
[oota-llvm.git] / lib / Target / AArch64 / AArch64ISelLowering.cpp
index f0fb03451b2a6f72dbdd7ff7a65f42c41f02091c..9340e7f0a55cede3f6eb71cf9d937e07086f50c1 100644 (file)
@@ -237,6 +237,10 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
 
   setOperationAction(ISD::SDIVREM, MVT::i32, Expand);
   setOperationAction(ISD::SDIVREM, MVT::i64, Expand);
+  for (MVT VT : MVT::vector_valuetypes()) {
+    setOperationAction(ISD::SDIVREM, VT, Expand);
+    setOperationAction(ISD::UDIVREM, VT, Expand);
+  }
   setOperationAction(ISD::SREM, MVT::i32, Expand);
   setOperationAction(ISD::SREM, MVT::i64, Expand);
   setOperationAction(ISD::UDIVREM, MVT::i32, Expand);