[PowerPC] Exploit VSX neg, abs and nabs for f32
authorQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 12 May 2020 06:29:40 +0000 (14:29 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Wed, 13 May 2020 06:28:50 +0000 (14:28 +0800)
commit8ffe8891cd57694dbed148cfcae8aaede70a0f30
treeb357df7c7b6014e22f09a98e5577b57bf026da69
parent6bbad7285c4b8a38fc9a3a0bd68eb3096f9d27bc
[PowerPC] Exploit VSX neg, abs and nabs for f32

xsnegdp, xsabsdp and xsnabsdp can be used to operate on f32 operand.

This patch adds the missing patterns since we prefer VSX instructions
when available.

Reviewed By: steven.zhang

Differential Revision: https://reviews.llvm.org/D75344
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/float-logic-ops.ll
llvm/test/CodeGen/PowerPC/fma.ll
llvm/test/CodeGen/PowerPC/fmf-propagation.ll
llvm/test/CodeGen/PowerPC/fsub-fneg.ll