aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/Support/ErrorTest.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-09 22:05:14 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-09 22:05:14 +0800
commit3a57627e59ba18b6f9f9aae7bb60c390c0d3575a (patch)
tree736ca062bfffbd68177a512dfe145b06c16d11b1 /backend/unittests/Support/ErrorTest.cpp
parent379ff50dcc7ccf977379aee68fa9d10f69065d23 (diff)
downloadrcc-project-3a57627e59ba18b6f9f9aae7bb60c390c0d3575a.tar.gz
rcc-project-3a57627e59ba18b6f9f9aae7bb60c390c0d3575a.tar.xz
[MC] Implement RV64GC object emission
Diffstat (limited to 'backend/unittests/Support/ErrorTest.cpp')
-rw-r--r--backend/unittests/Support/ErrorTest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/unittests/Support/ErrorTest.cpp b/backend/unittests/Support/ErrorTest.cpp
index f111063..803ccee 100644
--- a/backend/unittests/Support/ErrorTest.cpp
+++ b/backend/unittests/Support/ErrorTest.cpp
@@ -42,6 +42,15 @@ int main() {
return fail("CFG-optimization errors must have a stable name");
if (rcc::getErrorCodeName(rcc::ErrorCode::AssemblyLoweringFailed) != "assembly lowering failed")
return fail("assembly-lowering errors must have a stable name");
+ if (rcc::getErrorCodeName(rcc::ErrorCode::InstructionEncodingFailed) !=
+ "instruction encoding failed")
+ return fail("instruction-encoding errors must have a stable name");
+ if (rcc::getErrorCodeName(rcc::ErrorCode::FixupApplicationFailed) != "fixup application failed")
+ return fail("fixup-application errors must have a stable name");
+ if (rcc::getErrorCodeName(rcc::ErrorCode::RelocationFailed) != "relocation failed")
+ return fail("relocation errors must have a stable name");
+ if (rcc::getErrorCodeName(rcc::ErrorCode::ObjectWritingFailed) != "object writing failed")
+ return fail("object-writing errors must have a stable name");
return 0;
}