aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-10 04:52:33 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-10 04:52:33 +0000
commit9341c1d4b3772252bfc1f460da29c291b658e1f8 (patch)
treefce70eddc64d729f34976addbb23b9b6803feb67 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parent60520e22030df6dec13d6618c7be1701c3a3da14 (diff)
downloadllvm-9341c1d4b3772252bfc1f460da29c291b658e1f8.zip
llvm-9341c1d4b3772252bfc1f460da29c291b658e1f8.tar.gz
llvm-9341c1d4b3772252bfc1f460da29c291b658e1f8.tar.bz2
[WebAssembly] Implement fma.
It is lowered to a libcall for now, but this is expected to change in the future. llvm-svn: 255219
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index fae1094..4ef0846 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -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.