[SystemZ] Fix TMHH and TMHL usage for z10 with -O0
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 22 Nov 2013 17:28:28 +0000 (17:28 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 22 Nov 2013 17:28:28 +0000 (17:28 +0000)
commitb83bf521136801c1b9ea72dc9daae9428782cc75
tree549e24a130f57da2c6d8d0135b6fb507bd34269e
parent4be5f33f6558438e6b104f9c74bf035bb77bdc10
[SystemZ] Fix TMHH and TMHL usage for z10 with -O0

I've no idea why I decided to handle TMxx differently from all the other
high/low logic operations, but it was a stupid thing to do.  The high
registers aren't available as separate 32-bit registers on z10,
so subreg_h32 can't be used on a GR64 there.

I've normally been testing with z196 and with -O3 and so hadn't noticed
this until now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195473 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZAsmPrinter.cpp
lib/Target/SystemZ/SystemZInstrFormats.td
lib/Target/SystemZ/SystemZInstrInfo.td
lib/Target/SystemZ/SystemZPatterns.td
test/CodeGen/SystemZ/int-cmp-47.ll
test/CodeGen/SystemZ/int-cmp-49.ll [new file with mode: 0644]