[PowerPC] Handle STRICT_FSETCC(S) in more cases
authorQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 1 Sep 2020 16:29:12 +0000 (00:29 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 1 Sep 2020 16:33:21 +0000 (00:33 +0800)
commit29ae4485950ed76faa94dabbd13bbe91d2b5c750
tree7609e0945caa94dd244ef4544791e242f955766c
parent0e90d8d4fed8c8cac70700acfdef6fc2ca2d482d
[PowerPC] Handle STRICT_FSETCC(S) in more cases

On -O0, i1 strict_fsetcc will be promoted to i32. We don't handle that
in TD patterns. This patch fills logic in PPCISelDAGToDAG to handle more
cases.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D86595
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/test/CodeGen/PowerPC/fp-strict-fcmp-noopt.ll [new file with mode: 0644]