summaryrefslogtreecommitdiff
path: root/compiler/cmm/PprC.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-04-21 15:03:23 +0100
committerIan Lynagh <igloo@earth.li>2012-04-21 15:03:23 +0100
commit5136d64e47155070f9c7129b53156545a79b5e00 (patch)
treef8a1341382275a461ac286469f1c3341277f25ac /compiler/cmm/PprC.hs
parent6508697f398fa4e9241cec88991772eda86e37b3 (diff)
downloadhaskell-5136d64e47155070f9c7129b53156545a79b5e00.tar.gz
Add a quotRemWord2 primop
It allows you to do (high, low) `quotRem` d provided high < d. Currently only has an inefficient fallback implementation.
Diffstat (limited to 'compiler/cmm/PprC.hs')
-rw-r--r--compiler/cmm/PprC.hs11
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/cmm/PprC.hs b/compiler/cmm/PprC.hs
index 346b108fa4..9515612405 100644
--- a/compiler/cmm/PprC.hs
+++ b/compiler/cmm/PprC.hs
@@ -661,11 +661,12 @@ pprCallishMachOp_for_C mop
MO_Memmove -> ptext (sLit "memmove")
(MO_PopCnt w) -> ptext (sLit $ popCntLabel w)
- MO_S_QuotRem {} -> unsupported
- MO_U_QuotRem {} -> unsupported
- MO_Add2 {} -> unsupported
- MO_U_Mul2 {} -> unsupported
- MO_Touch -> unsupported
+ MO_S_QuotRem {} -> unsupported
+ MO_U_QuotRem {} -> unsupported
+ MO_U_QuotRem2 {} -> unsupported
+ MO_Add2 {} -> unsupported
+ MO_U_Mul2 {} -> unsupported
+ MO_Touch -> unsupported
where unsupported = panic ("pprCallishMachOp_for_C: " ++ show mop
++ " not supported!")