aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/CodeGen
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-12 01:50:59 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-12 01:50:59 +0800
commit068514ea70bd39ce6260c8c23982e702bafc2ab9 (patch)
tree53ce8d292cbfac7b6927046fcbbfc311ef380a1f /backend/unittests/CodeGen
parent4937c5107848f1c60262ef729d466e8d90df8d47 (diff)
downloadrcc-project-068514ea70bd39ce6260c8c23982e702bafc2ab9.tar.gz
rcc-project-068514ea70bd39ce6260c8c23982e702bafc2ab9.tar.xz
[RISCV] Legalize llvm.va_copy
Diffstat (limited to 'backend/unittests/CodeGen')
-rw-r--r--backend/unittests/CodeGen/TargetMIRTextInfoTest.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/backend/unittests/CodeGen/TargetMIRTextInfoTest.cpp b/backend/unittests/CodeGen/TargetMIRTextInfoTest.cpp
index d7e2f13..24945bd 100644
--- a/backend/unittests/CodeGen/TargetMIRTextInfoTest.cpp
+++ b/backend/unittests/CodeGen/TargetMIRTextInfoTest.cpp
@@ -109,9 +109,12 @@ void testTextSchemaQueries(TestContext &Context) {
!Text->machineMemOperandFlagNames(0x4) && !Text->virtualRegisterFlagNames(0x4),
"MMO and virtual-register flags must reject every unregistered bit");
- Context.expect(Text->intrinsic("llvm.test.seven") == rcc::IntrinsicID::fromValue(7) &&
- Text->intrinsicName(rcc::IntrinsicID::fromValue(17)) == "llvm.test.seventeen",
- "intrinsic names and strong IDs must round-trip");
+ Context.expect(
+ Text->intrinsic("llvm.test.seven") == rcc::IntrinsicID::fromValue(7) &&
+ Text->intrinsicName(rcc::IntrinsicID::fromValue(17)) == "llvm.test.seventeen" &&
+ Text->intrinsic("llvm.va_copy") == rcc::intrinsicID(rcc::GenericIntrinsic::VACopy) &&
+ Text->intrinsicName(rcc::intrinsicID(rcc::GenericIntrinsic::VACopy)) == "llvm.va_copy",
+ "intrinsic names and strong IDs must round-trip");
const auto G0 = phys(rcc::test::TestRegister::G0);
Context.expect(Text->dwarfRegister(G0) == rcc::test::TestRegister::G0 &&