[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)
commit1a21909e9846aa5962b093f28c61f314ef04bb75
treeef49c875417f61e218461c8c47e39519eb2e7dca
parent2c04d158ce48d49caad874afb37e609421718bf6
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236520 91177308-0d34-0410-b5e6-96231b3b80d8
22 files changed:
lib/Support/Host.cpp
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
lib/Target/SystemZ/Disassembler/SystemZDisassembler.cpp
lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp
lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.h
lib/Target/SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp
lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h
lib/Target/SystemZ/SystemZ.td
lib/Target/SystemZ/SystemZInstrFormats.td
lib/Target/SystemZ/SystemZInstrVector.td [new file with mode: 0644]
lib/Target/SystemZ/SystemZOperands.td
lib/Target/SystemZ/SystemZProcessors.td
lib/Target/SystemZ/SystemZRegisterInfo.td
lib/Target/SystemZ/SystemZSubtarget.cpp
lib/Target/SystemZ/SystemZSubtarget.h
test/MC/Disassembler/SystemZ/insns-z13-bad.txt [new file with mode: 0644]
test/MC/Disassembler/SystemZ/insns-z13.txt [new file with mode: 0644]
test/MC/SystemZ/insn-bad-z13.s [new file with mode: 0644]
test/MC/SystemZ/insn-bad-zEC12.s
test/MC/SystemZ/insn-good-z13.s [new file with mode: 0644]
test/MC/SystemZ/tokens.s