From aa7c85ca71859aab15bdf1e6dc1ea3a5aa5d1e28 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 06:52:15 +0800 Subject: [Support] Split APInt and APFloat ownership --- backend/unittests/CodeGen/GenericOpcodesTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/unittests/CodeGen/GenericOpcodesTest.cpp') diff --git a/backend/unittests/CodeGen/GenericOpcodesTest.cpp b/backend/unittests/CodeGen/GenericOpcodesTest.cpp index 6240c6d..73c1c36 100644 --- a/backend/unittests/CodeGen/GenericOpcodesTest.cpp +++ b/backend/unittests/CodeGen/GenericOpcodesTest.cpp @@ -326,7 +326,7 @@ void testShapesAndTypes(TestContext &Context) { (*Function)->registerInfo()), "G_ADD must reject a source from a different LLT equality group"); - auto ZeroImmediate = rcc::IntegerImmediate::fromUnsigned(64, 0); + auto ZeroImmediate = rcc::APInt::fromUnsigned(64, 0); std::vector PointerConstant; PointerConstant.push_back(registerOperand(*Address, true)); if (ZeroImmediate) @@ -489,7 +489,7 @@ void testShapesAndTypes(TestContext &Context) { "G_FPEXTLOAD must reject an integer result"); const std::array FloatWords{0}; - auto FloatBits = rcc::FloatingPointBits::create(rcc::FloatSemantics::IEEESingle, FloatWords); + auto FloatBits = rcc::APFloat::create(rcc::FloatSemantics::IEEESingle, FloatWords); if (!FloatBits) std::terminate(); std::vector FConstantOperands; @@ -505,7 +505,7 @@ void testShapesAndTypes(TestContext &Context) { "G_FCONSTANT must reject mismatched floating semantics"); const std::array BFloatWords{0}; - auto BFloatBits = rcc::FloatingPointBits::create(rcc::FloatSemantics::BFloat, BFloatWords); + auto BFloatBits = rcc::APFloat::create(rcc::FloatSemantics::BFloat, BFloatWords); if (!BFloatBits) std::terminate(); FConstantOperands[0] = registerOperand(Scalar16, true); -- cgit v1.2.3