aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-05 19:15:57 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-05 19:15:57 +0000
commitebb23545de42993e89b7c385ac0ddc7c2476abbb (patch)
tree8d34a87cf80cf741c03d019548eb01d67bfc0349 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parent0b655da7e4743d7bafb3072a5b1ea3999b5ed4e7 (diff)
downloadllvm-ebb23545de42993e89b7c385ac0ddc7c2476abbb.zip
llvm-ebb23545de42993e89b7c385ac0ddc7c2476abbb.tar.gz
llvm-ebb23545de42993e89b7c385ac0ddc7c2476abbb.tar.bz2
[WebAssembly] Expand frem as a floating point library function.
llvm-svn: 254854
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 65d2b19..baefd8d 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -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.