aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/CodeGen/MachineVerifierTargetTest.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 23:55:38 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 23:55:38 +0800
commitaa69e15c6909c3b162b15f5326f0a72ba9bb7163 (patch)
tree6428eb20e41bad1fc8ad2f5c259bc5537f54554d /backend/unittests/CodeGen/MachineVerifierTargetTest.cpp
parentcd30fb546e389d1fb78ce8e579b3dba3a8fdb52a (diff)
downloadrcc-project-aa69e15c6909c3b162b15f5326f0a72ba9bb7163.tar.gz
rcc-project-aa69e15c6909c3b162b15f5326f0a72ba9bb7163.tar.xz
[CodeGen] Unify scalar low-level types
Diffstat (limited to 'backend/unittests/CodeGen/MachineVerifierTargetTest.cpp')
-rw-r--r--backend/unittests/CodeGen/MachineVerifierTargetTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/backend/unittests/CodeGen/MachineVerifierTargetTest.cpp b/backend/unittests/CodeGen/MachineVerifierTargetTest.cpp
index 3eb926d..3cc2b56 100644
--- a/backend/unittests/CodeGen/MachineVerifierTargetTest.cpp
+++ b/backend/unittests/CodeGen/MachineVerifierTargetTest.cpp
@@ -186,7 +186,7 @@ void testValidTargetFacts(TestContext &Context, const rcc::TargetDescription &Ta
if (!Fixture.Function)
return;
- auto Type = rcc::LLT::makeInteger(64);
+ auto Type = rcc::LowLevelType::makeCategoryNeutralScalar(64);
auto Reg = Fixture.Function->registerInfo().createVirtualRegister(*Type);
if (!Reg)
return;
@@ -233,7 +233,7 @@ void testSubRegisterProjection(TestContext &Context, const rcc::TargetDescriptio
if (!Fixture.Function)
return;
- auto Type = rcc::LLT::makeInteger(64);
+ auto Type = rcc::LowLevelType::makeCategoryNeutralScalar(64);
auto Reg = Fixture.Function->registerInfo().createVirtualRegister(*Type);
if (!Reg)
return;
@@ -282,7 +282,7 @@ void testUnknownAndMalformedTargetFacts(TestContext &Context,
}
{
auto Fixture = createFunction(Context, "unknown_bank", 5);
- auto Type = rcc::LLT::makeInteger(64);
+ auto Type = rcc::LowLevelType::makeCategoryNeutralScalar(64);
if (!Fixture.Function || !Type)
return;
auto Reg = Fixture.Function->registerInfo().createVirtualRegister(*Type);
@@ -295,7 +295,7 @@ void testUnknownAndMalformedTargetFacts(TestContext &Context,
}
{
auto Fixture = createFunction(Context, "wide_bank_value", 6);
- auto Type = rcc::LLT::makeInteger(128);
+ auto Type = rcc::LowLevelType::makeCategoryNeutralScalar(128);
if (!Fixture.Function || !Type)
return;
auto Reg = Fixture.Function->registerInfo().createVirtualRegister(*Type);
@@ -325,7 +325,7 @@ void testUnknownAndMalformedTargetFacts(TestContext &Context,
}
{
auto Fixture = createFunction(Context, "bad_allocation_hint", 9);
- auto Type = rcc::LLT::makeInteger(64);
+ auto Type = rcc::LowLevelType::makeCategoryNeutralScalar(64);
auto Reg = Fixture.Function->registerInfo().createVirtualRegister(*Type);
Context.expect(Reg &&
classify(Fixture.Function->registerInfo(), *Reg,
@@ -340,7 +340,7 @@ void testUnknownAndMalformedTargetFacts(TestContext &Context,
}
{
auto Fixture = createFunction(Context, "reserved_allocation_hint", 14);
- auto Type = rcc::LLT::makeInteger(64);
+ auto Type = rcc::LowLevelType::makeCategoryNeutralScalar(64);
auto Reg = Fixture.Function->registerInfo().createVirtualRegister(*Type);
const auto G0 = phys(rcc::test::TestRegister::G0);
Context.expect(Reg &&
@@ -355,7 +355,7 @@ void testUnknownAndMalformedTargetFacts(TestContext &Context,
}
{
auto Fixture = createFunction(Context, "incompatible_function_livein", 15);
- auto Type = rcc::LLT::makeInteger(64);
+ auto Type = rcc::LowLevelType::makeCategoryNeutralScalar(64);
auto Reg = Fixture.Function->registerInfo().createVirtualRegister(*Type);
Context.expect(
Reg &&
@@ -416,7 +416,7 @@ void testRegMaskEarlyClobberAndTies(TestContext &Context, const rcc::TargetDescr
}
{
auto Fixture = createFunction(Context, "incompatible_tie", 12);
- auto Type = rcc::LLT::makeInteger(64);
+ auto Type = rcc::LowLevelType::makeCategoryNeutralScalar(64);
auto GPR = Fixture.Function->registerInfo().createVirtualRegister(*Type);
auto FPR = Fixture.Function->registerInfo().createVirtualRegister(*Type);
if (!GPR || !FPR)