PPC NCG: Generate MO_?_QuotRem for subword sizes
authorPeter Trommler <ptrommler@acm.org>
Tue, 11 Dec 2018 18:22:00 +0000 (13:22 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 11 Dec 2018 19:23:22 +0000 (14:23 -0500)
commit9e7d58c894571f3c114c4f793b52f9d17c4c57fe
treefa41d76acb7242a1b975dfd054dc7b6d4387ffc9
parentda05d79d03e5e03e391b381f23c46fc02957abf7
PPC NCG: Generate MO_?_QuotRem for subword sizes

Handle Int*QuotRemOP and Word*QuotRemOp in PPC NCG.
Refactor common code with remainder operation.

Test Plan: validate (I validated on Linux powerpc64le and x86_64)

Reviewers: erikd, hvr, bgamari, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, carter

Differential Revision: https://phabricator.haskell.org/D5323
compiler/codeGen/StgCmmPrim.hs
compiler/nativeGen/PPC/CodeGen.hs