diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 20:16:09 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 20:16:09 +0800 |
| commit | cd2e88b9618ba7c2f6fcfac901e81f4a302a34c9 (patch) | |
| tree | dffd656415955f1cc7431e790bec6b4e3c7b58ef /backend/unittests/Target/RISCVLateCodeGenTest.cpp | |
| parent | d53149886f39884efe3da5cae67653f9f86132d6 (diff) | |
| download | rcc-project-cd2e88b9618ba7c2f6fcfac901e81f4a302a34c9.tar.gz rcc-project-cd2e88b9618ba7c2f6fcfac901e81f4a302a34c9.tar.xz | |
[CodeGen] Remove redundant numeric call-site IDs
Diffstat (limited to 'backend/unittests/Target/RISCVLateCodeGenTest.cpp')
| -rw-r--r-- | backend/unittests/Target/RISCVLateCodeGenTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/unittests/Target/RISCVLateCodeGenTest.cpp b/backend/unittests/Target/RISCVLateCodeGenTest.cpp index b9479b2..84ed796 100644 --- a/backend/unittests/Target/RISCVLateCodeGenTest.cpp +++ b/backend/unittests/Target/RISCVLateCodeGenTest.cpp @@ -1130,8 +1130,7 @@ void testPostRAPseudoExpansionAndFinalization(TestContext &Context, } auto Call = Builder.buildInstr(opcode(rcc::riscv::InstructionOpcode::PseudoCALL)); auto Preserved = rcc::riscv::createCallPreservedMask(); - if (!Call || !Call->addExternalSymbol("callee", 0, 1) || !Call->addImmediate(11) || - !Call->addRegisterMask(Preserved) || + if (!Call || !Call->addExternalSymbol("callee", 0, 1) || !Call->addRegisterMask(Preserved) || !Call->addImplicitUse(physical(rcc::riscv::PhysicalRegisterID::X10)) || !Call->build()) { Context.expect(false, "post-RA call pseudo construction must succeed"); return; |
