[RISCV] Add H extension
authorKito Cheng <kito.cheng@sifive.com>
Tue, 10 Jan 2023 01:51:07 +0000 (09:51 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 10 Jan 2023 01:52:03 +0000 (09:52 +0800)
commitf4c887c3a8406d85f4f942c8350f10026994f4d8
treec9eb5c6ded7d81e190ac4cc56fe7b66918b9abe4
parent915f2f16fbb75793bfaface6efdce7ef31d2da52
[RISCV] Add H extension

`h` was the prefix of multi-letter extension name, but it become a
extension name in later RISC-V isa spec.

Fortunately we don't have any extension really defined is prefixed
with `h`, so we can just change that.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D136817
14 files changed:
clang/test/Preprocessor/riscv-target-features.c
llvm/docs/RISCVUsage.rst
llvm/lib/Support/RISCVISAInfo.cpp
llvm/lib/Target/RISCV/RISCV.td
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/CodeGen/RISCV/attributes.ll
llvm/test/MC/RISCV/priv-aliases-valid.s [deleted file]
llvm/test/MC/RISCV/priv-valid.s
llvm/test/MC/RISCV/rv32h-invalid.s [new file with mode: 0644]
llvm/test/MC/RISCV/rv32ih-aliases-valid.s [new file with mode: 0644]
llvm/test/MC/RISCV/rv32ih-valid.s [new file with mode: 0644]
llvm/test/MC/RISCV/rv64h-invalid.s [new file with mode: 0644]
llvm/test/MC/RISCV/rv64ih-valid.s [moved from llvm/test/MC/RISCV/priv-rv64-valid.s with 83% similarity]
llvm/test/MC/RISCV/rvi-aliases-valid.s