[SystemZ] Add z13 vector facility and MC support
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 5 May 2015 19:23:40 +0000 (19:23 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 5 May 2015 19:23:40 +0000 (19:23 +0000)
commita8b04e1cbcbeb9b1bb30e1fcc2b8631f3a304d81
treeb2808cac110476a60f2b34e95ffb41cdeb241bc2
parentb8499f09faa1cf1e0a941f089974b86c345025ac
[SystemZ] Add z13 vector facility and MC support

This patch adds support for the z13 processor type and its vector facility,
and adds MC support for all new instructions provided by that facilily.

Apart from defining the new instructions, the main changes are:

- Adding VR128, VR64 and VR32 register classes.
- Making FP64 a subclass of VR64 and FP32 a subclass of VR32.
- Adding a D(V,B) addressing mode for scatter/gather operations
- Adding 1-, 2-, and 3-bit immediate operands for some 4-bit fields.
  Until now all immediate operands have been the same width as the
  underlying field (hence the assert->return change in decode[SU]ImmOperand).

In addition, sys::getHostCPUName is extended to detect running natively
on a z13 machine.

Based on a patch by Richard Sandiford.

llvm-svn: 236520
22 files changed:
llvm/lib/Support/Host.cpp
llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
llvm/lib/Target/SystemZ/Disassembler/SystemZDisassembler.cpp
llvm/lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp
llvm/lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.h
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h
llvm/lib/Target/SystemZ/SystemZ.td
llvm/lib/Target/SystemZ/SystemZInstrFormats.td
llvm/lib/Target/SystemZ/SystemZInstrVector.td [new file with mode: 0644]
llvm/lib/Target/SystemZ/SystemZOperands.td
llvm/lib/Target/SystemZ/SystemZProcessors.td
llvm/lib/Target/SystemZ/SystemZRegisterInfo.td
llvm/lib/Target/SystemZ/SystemZSubtarget.cpp
llvm/lib/Target/SystemZ/SystemZSubtarget.h
llvm/test/MC/Disassembler/SystemZ/insns-z13-bad.txt [new file with mode: 0644]
llvm/test/MC/Disassembler/SystemZ/insns-z13.txt [new file with mode: 0644]
llvm/test/MC/SystemZ/insn-bad-z13.s [new file with mode: 0644]
llvm/test/MC/SystemZ/insn-bad-zEC12.s
llvm/test/MC/SystemZ/insn-good-z13.s [new file with mode: 0644]
llvm/test/MC/SystemZ/tokens.s