]> granicus.if.org Git - llvm/commit
[RISCV] Add support for RVC HINT instructions
authorLuis Marques <luismarques@lowrisc.org>
Wed, 21 Aug 2019 14:00:58 +0000 (14:00 +0000)
committerLuis Marques <luismarques@lowrisc.org>
Wed, 21 Aug 2019 14:00:58 +0000 (14:00 +0000)
commit7617a32179bf04cd358bbd05ca1398e015185dad
treef056148d5c1731581f18d9300d09346a00ebc248
parent07be7d1beae4ef15feca21399389dd4b1a29c6e5
[RISCV] Add support for RVC HINT instructions

The hint instructions are enabled by default (if the standard C extension is
enabled). To disable them pass -mattr=-rvc-hints.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369528 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/RISCVInstrInfoC.td
lib/Target/RISCV/RISCVRegisterInfo.td
lib/Target/RISCV/RISCVSubtarget.h
test/MC/RISCV/rv32c-invalid.s
test/MC/RISCV/rv64c-hints-valid.s [new file with mode: 0644]
test/MC/RISCV/rvc-hints-invalid.s [new file with mode: 0644]
test/MC/RISCV/rvc-hints-valid.s [new file with mode: 0644]