On PowerPC, we have vnmsubfp Altivec instruction for fnmsub operation on v4f32 type. Default pattern for this instruction never works since we don't have legal fneg for v4f32 when VSX disabled.
This is based on new opcodes D76585 added.
Paths
| Differential D80617
[PowerPC] Exploit vnmsubfp instruction ClosedPublic Authored by qiucf on May 27 2020, 3:10 AM.
Details
Summary On PowerPC, we have vnmsubfp Altivec instruction for fnmsub operation on v4f32 type. Default pattern for this instruction never works since we don't have legal fneg for v4f32 when VSX disabled. This is based on new opcodes D76585 added.
Diff Detail
Event Timelineqiucf added a parent revision: D76585: [PowerPC] Require NSZ flag for c-a*b to FNMSUB.May 27 2020, 3:10 AM This revision is now accepted and ready to land.Jun 4 2020, 8:58 PM Closed by commit rG7315d221a2bc: [PowerPC] Exploit vnmsubfp instruction (authored by qiucf). · Explain WhyJun 14 2020, 8:32 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 270626 llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrAltivec.td
llvm/test/CodeGen/PowerPC/fma-negate.ll
llvm/test/CodeGen/PowerPC/recipest.ll
|