Commit cae17466 authored by dterei's avatar dterei
Browse files

Explicitly handle unsupported Cmm prim ops.

parent af7e12f7
......@@ -1146,9 +1146,10 @@ genCCall' gcp target dest_regs argsAndHints
MO_PopCnt w -> (fsLit $ popCntLabel w, False)
other -> pprPanic "genCCall(ppc): unknown callish op"
(pprCallishMachOp other)
MO_WriteBarrier ->
panic $ "outOfLineCmmOp: MO_WriteBarrier not supported"
MO_Touch ->
panic $ "outOfLineCmmOp: MO_Touch not supported"
-- -----------------------------------------------------------------------------
-- Generating a table-branch
......
......@@ -342,5 +342,8 @@ outOfLineMachOp_table mop
MO_PopCnt w -> fsLit $ popCntLabel w
_ -> pprPanic "outOfLineMachOp(sparc): Unknown callish mach op "
(pprCallishMachOp mop)
MO_WriteBarrier ->
panic $ "outOfLineCmmOp: MO_WriteBarrier not supported here"
MO_Touch ->
panic $ "outOfLineCmmOp: MO_Touch not supported here"
......@@ -2048,8 +2048,10 @@ outOfLineCmmOp mop res args
MO_PopCnt _ -> fsLit "popcnt"
other -> panic $ "outOfLineCmmOp: unmatched op! (" ++ show other ++ ")"
MO_WriteBarrier ->
panic $ "outOfLineCmmOp: MO_WriteBarrier not supported here"
MO_Touch ->
panic $ "outOfLineCmmOp: MO_Touch not supported here"
-- -----------------------------------------------------------------------------
-- Generating a table-branch
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment