summaryrefslogtreecommitdiff
path: root/compiler/GHC/StgToJS/Prim.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/StgToJS/Prim.hs')
-rw-r--r--compiler/GHC/StgToJS/Prim.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/GHC/StgToJS/Prim.hs b/compiler/GHC/StgToJS/Prim.hs
index 36f12e3409..c051318b22 100644
--- a/compiler/GHC/StgToJS/Prim.hs
+++ b/compiler/GHC/StgToJS/Prim.hs
@@ -488,6 +488,11 @@ genPrim prof bound ty op = case op of
DoubleDecode_2IntOp -> \[s,h,l,e] [x] -> PrimInline $ appT [s,h,l,e] "h$decodeDouble2Int" [x]
DoubleDecode_Int64Op -> \[s1,s2,e] [d] -> PrimInline $ appT [e,s1,s2] "h$decodeDoubleInt64" [d]
+ DoubleFMAdd -> unhandledPrimop op
+ DoubleFMSub -> unhandledPrimop op
+ DoubleFNMAdd -> unhandledPrimop op
+ DoubleFNMSub -> unhandledPrimop op
+
------------------------------ Float --------------------------------------------
FloatGtOp -> \[r] [x,y] -> PrimInline $ r |= if10 (x .>. y)
@@ -524,6 +529,11 @@ genPrim prof bound ty op = case op of
FloatToDoubleOp -> \[r] [x] -> PrimInline $ r |= x
FloatDecode_IntOp -> \[s,e] [x] -> PrimInline $ appT [s,e] "h$decodeFloatInt" [x]
+ FloatFMAdd -> unhandledPrimop op
+ FloatFMSub -> unhandledPrimop op
+ FloatFNMAdd -> unhandledPrimop op
+ FloatFNMSub -> unhandledPrimop op
+
------------------------------ Arrays -------------------------------------------
NewArrayOp -> \[r] [l,e] -> PrimInline $ r |= app "h$newArray" [l,e]