PPC NCG: Lower MO_*_Fabs as PowerPC fabs instruction
authorPeter Trommler <ptrommler@acm.org>
Mon, 1 May 2017 15:17:25 +0000 (11:17 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 1 May 2017 15:17:40 +0000 (11:17 -0400)
commit068af0162a47b1fd7809d056ccc2d80e480d53f5
tree1ad7499a37c7a1997a628af32b38a848483ab6f7
parent667abf17dced8b4a4cd2dc6a291a6f244ffa031f
PPC NCG: Lower MO_*_Fabs as PowerPC fabs instruction

In Phab:D3265 we introduced MO_F32_Fabs and MO_F64_Fabs.
This patch improves code generation by generating PowerPC fabs
instructions.

Test Plan: run numeric/should_run/numrun015 or validate

Reviewers: austin, bgamari, hvr, simonmar, erikd

Reviewed By: erikd

Subscribers: rwbarton, thomie

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