aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/Target/RISCVLateCodeGenTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/unittests/Target/RISCVLateCodeGenTest.cpp')
-rw-r--r--backend/unittests/Target/RISCVLateCodeGenTest.cpp3
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;