mirror-llvm-project/llvm/unittests/Target/RISCV/CMakeLists.txt
Alexander Richardson b94b699857
[RISCV] Fix ISCVISAInfo::computeDefaultABI() result for xcheriot (#212129)
XCheriot was not considered in this function, so RV32E+XCheriot
defaulted
to ilp32e instead of cheriot when no -target-abi was given.

Since this function does not have unit test coverage, this adds new
tests
for the ABI inference functions: RISCVISAInfo::computeDefaultABI() and
RISCVABI::computeTargetABI.

This change was created with the help of AI tools
2026-08-01 05:45:19 +00:00

25 lines
400 B
CMake

include_directories(
${LLVM_MAIN_SRC_DIR}/lib/Target/RISCV
${LLVM_BINARY_DIR}/lib/Target/RISCV
)
set(LLVM_LINK_COMPONENTS
RISCVCodeGen
RISCVDesc
RISCVInfo
Analysis
AsmParser
CodeGen
Core
MC
Passes
SelectionDAG
TargetParser
)
add_llvm_target_unittest(RISCVTests
MCInstrAnalysisTest.cpp
RISCVBaseInfoTest.cpp
RISCVInstrInfoTest.cpp
RISCVSelectionDAGTest.cpp
)