diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 00:16:18 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-12 00:16:18 +0800 |
| commit | adf3e4f02e330e052dbb75e9601bae5273ccfe6c (patch) | |
| tree | 83ae7665e938d3bbbfeec9f13d75caa3f50e10b7 /backend/unittests/MIR/MIRDocumentTest.cpp | |
| parent | a308176a15e60f04823ec5c05f4a164394f26d8f (diff) | |
| download | rcc-project-adf3e4f02e330e052dbb75e9601bae5273ccfe6c.tar.gz rcc-project-adf3e4f02e330e052dbb75e9601bae5273ccfe6c.tar.xz | |
[MIR] Accept physical-only function live-ins
Diffstat (limited to 'backend/unittests/MIR/MIRDocumentTest.cpp')
| -rw-r--r-- | backend/unittests/MIR/MIRDocumentTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/unittests/MIR/MIRDocumentTest.cpp b/backend/unittests/MIR/MIRDocumentTest.cpp index 28d5350..5855f57 100644 --- a/backend/unittests/MIR/MIRDocumentTest.cpp +++ b/backend/unittests/MIR/MIRDocumentTest.cpp @@ -331,6 +331,7 @@ registers: - { id: 8, class: gpr64, preferred-register: '' } liveins: - { reg: '$g0', virtual-reg: '%7' } + - { reg: '$g1', virtual-reg: '' } calleeSavedRegisters: [ '$g1' ] frameInfo: isFrameAddressTaken: true @@ -374,7 +375,7 @@ machineMetadataNodes: - '!10 = distinct !{!0, !"machine", null}' body: | bb.0.entry (%ir-block.entry): - liveins: $g0 + liveins: $g0, $g1 %7:gpr64 = TEST_LOAD $g0 :: (load syncscope("agent") acquire 8 from %ir.slot, align 8) TEST_GLOBAL @ordinary TEST_BRANCH %bb.0.entry @@ -429,7 +430,7 @@ void testDocumentTransaction(TestContext &Context) { return; Context.expect(Function->registerInfo().virtualRegisters().size() == 2 && - Function->registerInfo().liveIns().size() == 1 && + Function->registerInfo().liveIns().size() == 2 && Function->records().hasCalleeSavedRegisters(), "register tables must publish into the common MachineIR model"); Context.expect(Function->frameInfo().liveObjectCount() == 3 && |
