[SystemZ] Extend integer absolute selection
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 13 Dec 2013 15:35:00 +0000 (15:35 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 13 Dec 2013 15:35:00 +0000 (15:35 +0000)
commit193bf3171ff43eabd6d5e1a3dbbdf5d4ca20a63c
tree4e20ae461d625c6baa87afd17d47ad506cad8d3d
parent467a3f9b3f527a86694e228c536e82bc768e2aef
[SystemZ] Extend integer absolute selection

This patch makes more use of LPGFR and LNGFR.  It builds on top of
the LTGFR selection from r197234.  Most of the tests are motivated
by what InstCombine would produce.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197236 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h
lib/Target/SystemZ/SystemZInstrInfo.td
lib/Target/SystemZ/SystemZOperators.td
test/CodeGen/SystemZ/int-abs-01.ll
test/CodeGen/SystemZ/int-neg-02.ll