[SystemZ] Reuse CC results for integer comparisons with zero
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 1 Aug 2013 10:39:40 +0000 (10:39 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 1 Aug 2013 10:39:40 +0000 (10:39 +0000)
commit8f0ad5ae8f2699f6ab13a229941a0b192273cae8
tree9d0bb8af50d25824ea6549b972bee2930b765bba
parent3237f88882eed8a67fa679f7071a5441c4306ac3
[SystemZ] Reuse CC results for integer comparisons with zero

This also fixes a bug in the predication of LR to LOCR: I'd forgotten
that with these in-place instruction builds, the implicit operands need
to be added manually.  I think this was latent until now, but is tested
by int-cmp-45.c.  It also adds a CC valid mask to STOC, again tested by
int-cmp-45.c.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187573 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZInstrFormats.td
lib/Target/SystemZ/SystemZInstrInfo.cpp
lib/Target/SystemZ/SystemZInstrInfo.h
lib/Target/SystemZ/SystemZInstrInfo.td
lib/Target/SystemZ/SystemZLongBranch.cpp
test/CodeGen/SystemZ/int-cmp-44.ll [new file with mode: 0644]
test/CodeGen/SystemZ/int-cmp-45.ll [new file with mode: 0644]