diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 23:44:57 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 23:44:57 +0800 |
| commit | e6cd1347cc2c76babe56842e1b7bd05d68fe9584 (patch) | |
| tree | d00769b50841cbcea907b76ac006b366147325dc /backend/unittests/Target/RISCVFrameLoweringTest.cpp | |
| parent | 234d7d3bec020103e46daaff39d207d978479730 (diff) | |
| download | rcc-project-e6cd1347cc2c76babe56842e1b7bd05d68fe9584.tar.gz rcc-project-e6cd1347cc2c76babe56842e1b7bd05d68fe9584.tar.xz | |
[RISCV] Model typed floating-point register views
Diffstat (limited to 'backend/unittests/Target/RISCVFrameLoweringTest.cpp')
| -rw-r--r-- | backend/unittests/Target/RISCVFrameLoweringTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/unittests/Target/RISCVFrameLoweringTest.cpp b/backend/unittests/Target/RISCVFrameLoweringTest.cpp index 0525a6d..6a6cd5b 100644 --- a/backend/unittests/Target/RISCVFrameLoweringTest.cpp +++ b/backend/unittests/Target/RISCVFrameLoweringTest.cpp @@ -592,7 +592,7 @@ void testCalleeSavedRegisters(TestContext &Context, const rcc::TargetDescription !buildAddImmediate(*Fixture->Function, Target, *Fixture->Block, physical(rcc::riscv::PhysicalRegisterID::X9), Zero, 2) || !buildMoveToDouble(*Fixture->Function, Target, *Fixture->Block, - physical(rcc::riscv::PhysicalRegisterID::F8), Zero) || + physical(rcc::riscv::PhysicalRegisterID::F8_D), Zero) || !buildReturn(*Fixture->Function, Target, *Fixture->Block)) { return; } @@ -601,7 +601,7 @@ void testCalleeSavedRegisters(TestContext &Context, const rcc::TargetDescription Context.expect( Lowered && Saved.size() == 3 && Saved[0] == physReg(rcc::riscv::PhysicalRegisterID::X1) && Saved[1] == physReg(rcc::riscv::PhysicalRegisterID::X9) && - Saved[2] == physReg(rcc::riscv::PhysicalRegisterID::F8) && + Saved[2] == physReg(rcc::riscv::PhysicalRegisterID::F8_D) && countOpcode(*Fixture->Function, rcc::riscv::InstructionOpcode::SD) == 2 && countOpcode(*Fixture->Function, rcc::riscv::InstructionOpcode::FSD) == 1 && countOpcode(*Fixture->Function, rcc::riscv::InstructionOpcode::LD) == 2 && @@ -615,7 +615,7 @@ void testCalleeSavedRegisters(TestContext &Context, const rcc::TargetDescription findCalleeSave(*Fixture->Function, physReg(rcc::riscv::PhysicalRegisterID::X1)) != nullptr && findCalleeSave(*Fixture->Function, physReg(rcc::riscv::PhysicalRegisterID::X9)) != nullptr && - findCalleeSave(*Fixture->Function, physReg(rcc::riscv::PhysicalRegisterID::F8)) != + findCalleeSave(*Fixture->Function, physReg(rcc::riscv::PhysicalRegisterID::F8_D)) != nullptr && !hasFrameIndex(*Fixture->Function), "callee-save records, stack objects, and eliminated operands must remain consistent"); |
