Break out bytecodeText/conditions tests into smaller tests for if/while/do-while.

This commit is contained in:
Mark Punzalan
2019-03-14 21:55:11 -07:00
committed by max-kammerer
parent 9eb11ff3e9
commit 3585792b3b
26 changed files with 797 additions and 563 deletions
@@ -0,0 +1,39 @@
// Generates ICONST_1
val a = 1
fun main() {
// Generates IFNE and GOTO
while (a == 0) {
"loop"
}
// Generates IFLE and GOTO
while (a > 0) {
"loop"
}
// Generates IFLT and GOTO
while (a >= 0) {
"loop"
}
// Generates IFGE and GOTO
while (a < 0) {
"loop"
}
// Generates IFGT and GOTO
while (a <= 0) {
"loop"
}
}
//0 ICONST_0
//1 ICONST_1
//1 IFNE
//1 IFLE
//1 IFLT
//1 IFGE
//1 IFGT
//5 IF
//5 GOTO