From 068514ea70bd39ce6260c8c23982e702bafc2ab9 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Wed, 12 Aug 2026 01:50:59 +0800 Subject: [RISCV] Legalize llvm.va_copy --- backend/unittests/CodeGen/TargetMIRTextInfoTest.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'backend/unittests/CodeGen') 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 && -- cgit v1.2.3