[WebAssembly] Expand frem as a floating point library function.
authorDan Gohman <dan433584@gmail.com>
Sat, 5 Dec 2015 19:15:57 +0000 (19:15 +0000)
committerDan Gohman <dan433584@gmail.com>
Sat, 5 Dec 2015 19:15:57 +0000 (19:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254854 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

index 65d2b1967b1308fab227a02607ab48bc6af01cc5..baefd8d0758d52d924816ecfbb677fb7a8f1a0b3 100644 (file)
@@ -133,7 +133,8 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
                     ISD::SETULT, ISD::SETULE, ISD::SETUGT, ISD::SETUGE})
       setCondCodeAction(CC, T, Expand);
     // Expand floating-point library function operators.
-    for (auto Op : {ISD::FSIN, ISD::FCOS, ISD::FSINCOS, ISD::FPOWI, ISD::FPOW})
+    for (auto Op : {ISD::FSIN, ISD::FCOS, ISD::FSINCOS, ISD::FPOWI, ISD::FPOW,
+                    ISD::FREM})
       setOperationAction(Op, T, Expand);
     // Note supported floating-point library function operators that otherwise
     // default to expand.