Skip to content

Instantly share code, notes, and snippets.

@sampsyo
Created December 19, 2023 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sampsyo/681f9b5d5dfe5b5c0bf1cca51fa55a5a to your computer and use it in GitHub Desktop.
Save sampsyo/681f9b5d5dfe5b5c0bf1cca51fa55a5a to your computer and use it in GitHub Desktop.
unreduced test case for Bril bug #295
@main(b0: bool, b1: bool) {
jmp .start;
.end:
print x_0_2;
print x_1_2;
ret;
.l_1_3:
jmp .end;
.l_1_2:
x_1_2 : int = const 0;
jmp .l_1_3;
.l_1_1:
x_1_1 : int = const 1;
jmp .l_1_3;
.l_0_3:
br b1 .l_1_1 .l_1_2;
.l_0_2:
x_0_2 : int = const 2;
jmp .l_0_3;
.l_0_1:
x_0_1 : int = const 3;
jmp .l_0_3;
.start:
br b0 .l_0_1 .l_0_2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment