summaryrefslogtreecommitdiff
path: root/compiler/GHC/StgToCmm/Prim.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/StgToCmm/Prim.hs')
-rw-r--r--compiler/GHC/StgToCmm/Prim.hs15
1 files changed, 0 insertions, 15 deletions
diff --git a/compiler/GHC/StgToCmm/Prim.hs b/compiler/GHC/StgToCmm/Prim.hs
index dff86341b1..8ccdce3e1c 100644
--- a/compiler/GHC/StgToCmm/Prim.hs
+++ b/compiler/GHC/StgToCmm/Prim.hs
@@ -1106,13 +1106,6 @@ emitPrimOp dflags primop = case primop of
ChrOp -> \args -> opNop args -- Int# and Char# are rep'd the same
OrdOp -> \args -> opNop args
- Narrow8IntOp -> \args -> opNarrow args (MO_SS_Conv, W8)
- Narrow16IntOp -> \args -> opNarrow args (MO_SS_Conv, W16)
- Narrow32IntOp -> \args -> opNarrow args (MO_SS_Conv, W32)
- Narrow8WordOp -> \args -> opNarrow args (MO_UU_Conv, W8)
- Narrow16WordOp -> \args -> opNarrow args (MO_UU_Conv, W16)
- Narrow32WordOp -> \args -> opNarrow args (MO_UU_Conv, W32)
-
DoublePowerOp -> \args -> opCallish args MO_F64_Pwr
DoubleSinOp -> \args -> opCallish args MO_F64_Sin
DoubleCosOp -> \args -> opCallish args MO_F64_Cos
@@ -1682,14 +1675,6 @@ emitPrimOp dflags primop = case primop of
opNop args = opIntoRegs $ \[res] -> emitAssign (CmmLocal res) arg
where [arg] = args
- opNarrow
- :: [CmmExpr]
- -> (Width -> Width -> MachOp, Width)
- -> PrimopCmmEmit
- opNarrow args (mop, rep) = opIntoRegs $ \[res] -> emitAssign (CmmLocal res) $
- CmmMachOp (mop rep (wordWidth platform)) [CmmMachOp (mop (wordWidth platform) rep) [arg]]
- where [arg] = args
-
-- | These primops are implemented by CallishMachOps, because they sometimes
-- turn into foreign calls depending on the backend.
opCallish :: [CmmExpr] -> CallishMachOp -> PrimopCmmEmit