Commit 7d8b2c18 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Call expandCallishMachOp in the x86_64 codegen too

Currently it does nothing, as x86_64 supports all the callishMachOps
that expandCallishMachOp expands, but it might be needed in the future.
parent ec37da26
......@@ -1844,6 +1844,10 @@ genCCall64 target dest_regs args =
(CmmPrim (MO_S_QuotRem width), _) -> divOp True width dest_regs args
(CmmPrim (MO_U_QuotRem width), _) -> divOp False width dest_regs args
(CmmPrim op, results)
| Just stmts <- expandCallishMachOp op results args ->
stmtsToInstrs stmts
_ -> genCCall64' target dest_regs args
where divOp signed width [CmmHinted res_q _, CmmHinted res_r _]
......
Markdown is supported
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