Add an operator for vmull_lane so it can be implemented without a clang builtin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121187 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp
index 7fdc1ca..d3a0680 100644
--- a/utils/TableGen/NeonEmitter.cpp
+++ b/utils/TableGen/NeonEmitter.cpp
@@ -601,6 +601,11 @@
Extend(proto, typestr,
Duplicate(nElts << (int)quad, typestr, "__b")) + ";";
break;
+ case OpMullLane:
+ s += Extend(proto, typestr, "__a") + " * " +
+ Extend(proto, typestr,
+ SplatLane(nElts, "__b", "__c")) + ";";
+ break;
case OpMull:
s += Extend(proto, typestr, "__a") + " * " +
Extend(proto, typestr, "__b") + ";";
diff --git a/utils/TableGen/NeonEmitter.h b/utils/TableGen/NeonEmitter.h
index 0ee856c..5351bbe 100644
--- a/utils/TableGen/NeonEmitter.h
+++ b/utils/TableGen/NeonEmitter.h
@@ -34,6 +34,7 @@
OpMlaN,
OpMlsN,
OpMulLane,
+ OpMullLane,
OpMlaLane,
OpMlsLane,
OpEq,
@@ -89,6 +90,7 @@
OpMap["OP_MLA_N"] = OpMlaN;
OpMap["OP_MLS_N"] = OpMlsN;
OpMap["OP_MUL_LN"]= OpMulLane;
+ OpMap["OP_MULL_LN"] = OpMullLane;
OpMap["OP_MLA_LN"]= OpMlaLane;
OpMap["OP_MLS_LN"]= OpMlsLane;
OpMap["OP_EQ"] = OpEq;