[PowerPC] Eliminate compares - add i32 sext/zext handling for SETLE/SETGE
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 8 Aug 2017 11:20:44 +0000 (11:20 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 8 Aug 2017 11:20:44 +0000 (11:20 +0000)
commit809fbfa6a16e3d3cf5df46c068e6f72dfe6f46ba
tree40d05c631ce45641242c2b926c8900235d24fbcc
parent7e9c478cda26a71dc4efbf96183738171eb9b721
[PowerPC] Eliminate compares - add i32 sext/zext handling for SETLE/SETGE

Adds handling for SETLE/SETGE comparisons on i32 values. Furthermore, it adds
the handling for the special case where RHS == 0.

Differential Revision: https://reviews.llvm.org/D34048

llvm-svn: 310346
13 files changed:
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/test/CodeGen/PowerPC/testComparesigesc.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesigesi.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesigess.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesilesc.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesilesi.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesiless.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesllgesc.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesllgesi.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesllgess.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testCompareslllesc.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testCompareslllesi.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesllless.ll [new file with mode: 0644]