summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
diff options
context:
space:
mode:
authorAlex Bradbury <asb@lowrisc.org>2018-11-16 10:33:23 +0000
committerAlex Bradbury <asb@lowrisc.org>2018-11-16 10:33:23 +0000
commitb4a64cede820c2fd58884226388dfa8f77cccd0f (patch)
treed55772fcfe7ef2de401aeeda2f8fc84f1be7aa0e /llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
parent2146e8fb1e5f700460acc66cdf37f6c6729ad5c5 (diff)
downloadbcm5719-llvm-b4a64cede820c2fd58884226388dfa8f77cccd0f.tar.gz
bcm5719-llvm-b4a64cede820c2fd58884226388dfa8f77cccd0f.zip
[RISCV][NFC] Define and use the new CA instruction format
The RISC-V ISA manual was updated on 2018-11-07 (commit 00557c3) to define a new compressed instruction format, RVC format CA (no actual instruction encodings were changed). This patch updates the RISC-V backend to define the new format, and to use it in the relevant instructions. Differential Revision: https://reviews.llvm.org/D54302 Patch by Luís Marques. llvm-svn: 347043
Diffstat (limited to 'llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h')
-rw-r--r--llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h b/llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
index 86cd2d6e58a..372e0e80bba 100644
--- a/llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
+++ b/llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
@@ -39,9 +39,10 @@ enum {
InstFormatCIW = 11,
InstFormatCL = 12,
InstFormatCS = 13,
- InstFormatCB = 14,
- InstFormatCJ = 15,
- InstFormatOther = 16,
+ InstFormatCA = 14,
+ InstFormatCB = 15,
+ InstFormatCJ = 16,
+ InstFormatOther = 17,
InstFormatMask = 31
};
OpenPOWER on IntegriCloud