[SystemZ] Add NRK, ORK and XRK
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 19 Jul 2013 16:21:55 +0000 (16:21 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 19 Jul 2013 16:21:55 +0000 (16:21 +0000)
commitdb92fb07169af6941dfe47439f9849d370f0eb0b
tree0e2cc8604ad34832f39bdb4c980252f34cfa09f0
parentcae5d5ea658e05091e66b742b5834f1896ff2f5d
[SystemZ] Add NRK, ORK and XRK

The atomic tests assume the two-operand forms, so I've restricted them to z10.

Running and-01.ll, or-01.ll and xor-01.ll for z196 as well as z10 shows why
using convertToThreeAddress() is better than exposing the three-operand forms
first and then converting back to two operands where possible (which is what
I'd originally tried).  Using the three-operand form first stops us from
taking advantage of NG, OG and XG for spills.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186683 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
lib/Target/SystemZ/SystemZInstrFormats.td
lib/Target/SystemZ/SystemZInstrInfo.td
test/CodeGen/SystemZ/and-01.ll
test/CodeGen/SystemZ/and-07.ll [new file with mode: 0644]
test/CodeGen/SystemZ/atomicrmw-and-03.ll
test/CodeGen/SystemZ/atomicrmw-nand-03.ll
test/CodeGen/SystemZ/atomicrmw-or-03.ll
test/CodeGen/SystemZ/atomicrmw-xor-03.ll
test/CodeGen/SystemZ/or-01.ll
test/CodeGen/SystemZ/or-07.ll [new file with mode: 0644]
test/CodeGen/SystemZ/xor-01.ll
test/CodeGen/SystemZ/xor-07.ll [new file with mode: 0644]
test/MC/Disassembler/SystemZ/insns.txt
test/MC/SystemZ/insn-bad.s
test/MC/SystemZ/insn-good-z196.s