diff options
author | Qiu Chaofan <qiucofan@cn.ibm.com> | 2020-06-04 16:30:17 +0800 |
---|---|---|
committer | Qiu Chaofan <qiucofan@cn.ibm.com> | 2020-06-04 16:41:27 +0800 |
commit | 7a001a2d92a777de196eaaa070a4bfc23f40fd87 (patch) | |
tree | e9b8d234316895f1ab35d8a5492dee5b2b51cc74 /clang/unittests/Tooling/Syntax/TreeTest.cpp | |
parent | dcfa78a4ccec9772d9ff7fea536f81717cf30b24 (diff) | |
download | llvm-7a001a2d92a777de196eaaa070a4bfc23f40fd87.zip llvm-7a001a2d92a777de196eaaa070a4bfc23f40fd87.tar.gz llvm-7a001a2d92a777de196eaaa070a4bfc23f40fd87.tar.bz2 |
[PowerPC] Require nsz flag for c-a*b to FNMSUB
On PowerPC, FNMSUB (both VSX and non-VSX version) means -(a*b-c). But
the backend used to generate these instructions regardless whether nsz
flag exists or not. If a*b-c==0, such transformation changes sign of
zero.
This patch introduces PPC specific FNMSUB ISD opcode, which may help
improving combined FMA code sequence.
Reviewed By: steven.zhang
Differential Revision: https://reviews.llvm.org/D76585
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TreeTest.cpp')
0 files changed, 0 insertions, 0 deletions