Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kirstenmg committed Jun 5, 2024
1 parent 83883eb commit 9759bb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions tests/peggy_comparison/conditional_constant_folding.bril
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@

.if:
res: int = mul four x;
ret res;
jmp .end;

.else_if_check:
cond: bool = eq x four;
br cond .else_if .else;
jmp .end;

.else_if:
res: int = mul five x;
ret res;
jmp .end;

.else:
ret twenty;
res: int = id twenty;
jmp .end;

.end:
print res;
ret res;
}
2 changes: 1 addition & 1 deletion tests/peggy_comparison/dead_loop_deletion.bril
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@main: int {
j: int = const 3;
i: int = const 1;
i: int = const 5;
four: int = const 4;
one: int = const 1;

Expand Down

0 comments on commit 9759bb7

Please sign in to comment.