[WebAssembly] Implement fma.
[oota-llvm.git] / lib / Target / WebAssembly / WebAssemblyISelLowering.cpp
index fae10947ec6b37aef4199705aaa5f4dfefa08ebe..4ef0846d311a2a0f31e2984747b5ddc460d9a155 100644 (file)
@@ -134,7 +134,7 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
       setCondCodeAction(CC, T, Expand);
     // Expand floating-point library function operators.
     for (auto Op : {ISD::FSIN, ISD::FCOS, ISD::FSINCOS, ISD::FPOWI, ISD::FPOW,
-                    ISD::FREM})
+                    ISD::FREM, ISD::FMA})
       setOperationAction(Op, T, Expand);
     // Note supported floating-point library function operators that otherwise
     // default to expand.