OSDN Git Service

[RISCV] MC layer support for the standard RV32D instruction set extension
authorAlex Bradbury <asb@lowrisc.org>
Thu, 7 Dec 2017 10:46:23 +0000 (10:46 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Thu, 7 Dec 2017 10:46:23 +0000 (10:46 +0000)
commit42a025965e830f80f5148fa620750404ed71c266
treecaea75662ee3bdf674240ecb0d207c53c9385952
parentfd11bc081304b8ca3bf7a657eb45af7a6a24246f
[RISCV] MC layer support for the standard RV32D instruction set extension

As the FPR32 and FPR64 registers have the same names, use
validateTargetOperandClass in RISCVAsmParser to coerce a parsed FPR32 to an
FPR64 when necessary. The rest of this patch is very similar to the RV32F
patch.

Differential Revision: https://reviews.llvm.org/D39895

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320023 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
lib/Target/RISCV/RISCV.td
lib/Target/RISCV/RISCVInstrInfo.td
lib/Target/RISCV/RISCVInstrInfoD.td [new file with mode: 0644]
lib/Target/RISCV/RISCVRegisterInfo.td
lib/Target/RISCV/RISCVSubtarget.h
test/MC/RISCV/rv32d-invalid.s [new file with mode: 0644]
test/MC/RISCV/rv32d-valid.s [new file with mode: 0644]
test/MC/RISCV/rv32f-invalid.s