diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 00:35:40 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 00:35:40 +0800 |
| commit | 384d524b497826e0760f1bb3b54f0533e0f33957 (patch) | |
| tree | 897b95c37c4f29d64051ea3e946637bdf03efdd1 /backend/unittests/Target | |
| parent | d91d57297bdb30b6363e259ab75d517dc333e292 (diff) | |
| download | rcc-project-384d524b497826e0760f1bb3b54f0533e0f33957.tar.gz rcc-project-384d524b497826e0760f1bb3b54f0533e0f33957.tar.xz | |
[RISCV] Model target-specific generic opcodes
Diffstat (limited to 'backend/unittests/Target')
| -rw-r--r-- | backend/unittests/Target/RISCVTargetTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/unittests/Target/RISCVTargetTest.cpp b/backend/unittests/Target/RISCVTargetTest.cpp index 2077496..6fa3d40 100644 --- a/backend/unittests/Target/RISCVTargetTest.cpp +++ b/backend/unittests/Target/RISCVTargetTest.cpp @@ -149,7 +149,7 @@ void testABIAndDebugFacts(TestContext &Context) { void testInstructionFacts(TestContext &Context) { constexpr std::size_t TargetInstructionCount = - static_cast<std::uint32_t>(rcc::riscv::InstructionOpcode::G_SLLW) - + static_cast<std::uint32_t>(rcc::riscv::InstructionOpcode::G_CLSW) - static_cast<std::uint32_t>(rcc::riscv::InstructionOpcode::LUI) + 1U; auto Target = rcc::riscv::createTargetDescription(); Context.expect(Target.has_value(), "RV64GC target description must be structurally valid"); |
