Add BLT test

This commit is contained in:
Toby Jaffey 2025-12-14 21:53:54 +00:00
parent 83276f98e4
commit 49a94ca174
3 changed files with 25 additions and 0 deletions

View file

@ -7,6 +7,14 @@ void main(void) {
asm("auipc t0, 0"); // copy pc into t0
asm("auipc t1, 0"); // copy pc into t1
break;
case TEST2:
asm("li t0, 2");
asm("li t1, 1");
label2:
println("loop");
asm goto("blt t0, t1, %l0" : : : : label2);
break;
}
}