From 037b35e7dbdbeb525bc204f8aa7f978b926f93bb Mon Sep 17 00:00:00 2001 From: clamchowder Date: Fri, 11 Oct 2024 09:02:36 -0700 Subject: [PATCH] fix --- AsmGen/tests/IdrfTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsmGen/tests/IdrfTest.cs b/AsmGen/tests/IdrfTest.cs index 49b6a16..d59d367 100644 --- a/AsmGen/tests/IdrfTest.cs +++ b/AsmGen/tests/IdrfTest.cs @@ -34,7 +34,7 @@ public override void GenerateAsm(StringBuilder sb, IUarchTest.ISA isa) { if (addIdx < addCount) { - string addInstr = " add $" + (i + 1) + ", %r1" + (12 + (i % 4)); + string addInstr = " add $" + (i + 1) + ", %r" + (12 + (i % 4)); testInstructions.Add(addInstr); addIdx++; } @@ -46,7 +46,7 @@ public override void GenerateAsm(StringBuilder sb, IUarchTest.ISA isa) } else { - string branchInstr = " test %r11, %r11\n je {dummyBranchTargetName}"; + string branchInstr = $" test %r11, %r11\n je {dummyBranchTargetName}"; testInstructions.Add(branchInstr); } }