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); } }