-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
170 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
source: tests/files.rs | ||
expression: visualization.result | ||
--- | ||
# ARGS: 20 | ||
@main(v0: int) { | ||
.b1_: | ||
c2_: int = const 0; | ||
c3_: int = const 10; | ||
v4_: int = id c2_; | ||
v5_: int = id c3_; | ||
v6_: int = id c2_; | ||
v7_: int = id v0; | ||
.b8_: | ||
c9_: int = const 5; | ||
v10_: bool = eq c9_ v5_; | ||
v11_: bool = not v10_; | ||
v12_: int = id v4_; | ||
v13_: int = id v5_; | ||
v14_: int = id v6_; | ||
v15_: int = id v7_; | ||
br v11_ .b16_ .b17_; | ||
.b16_: | ||
c18_: int = const 1; | ||
v19_: int = add c18_ v6_; | ||
v20_: bool = eq v19_ v7_; | ||
v21_: int = add v19_ v4_; | ||
v22_: int = id v21_; | ||
v23_: int = id v5_; | ||
v24_: int = id v19_; | ||
v25_: int = id v7_; | ||
br v20_ .b26_ .b27_; | ||
.b26_: | ||
c28_: int = const 5; | ||
v22_: int = id v21_; | ||
v23_: int = id c28_; | ||
v24_: int = id v19_; | ||
v25_: int = id v7_; | ||
v12_: int = id v22_; | ||
v13_: int = id v23_; | ||
v14_: int = id v24_; | ||
v15_: int = id v25_; | ||
v4_: int = id v12_; | ||
v5_: int = id v13_; | ||
v6_: int = id v14_; | ||
v7_: int = id v15_; | ||
jmp .b8_; | ||
.b27_: | ||
v12_: int = id v22_; | ||
v13_: int = id v23_; | ||
v14_: int = id v24_; | ||
v15_: int = id v25_; | ||
v4_: int = id v12_; | ||
v5_: int = id v13_; | ||
v6_: int = id v14_; | ||
v7_: int = id v15_; | ||
jmp .b8_; | ||
.b17_: | ||
v4_: int = id v12_; | ||
v5_: int = id v13_; | ||
v6_: int = id v14_; | ||
v7_: int = id v15_; | ||
print v4_; | ||
ret; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/snapshots/files__select_simple-optimize-sequential.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
source: tests/files.rs | ||
expression: visualization.result | ||
--- | ||
# ARGS: 20 30 | ||
@main(v0: int, v1: int) { | ||
.b2_: | ||
v3_: int = mul v0 v1; | ||
c4_: int = const 20; | ||
v5_: bool = lt v3_ c4_; | ||
v6_: int = id v1; | ||
br v5_ .b7_ .b8_; | ||
.b7_: | ||
v6_: int = id v0; | ||
print v6_; | ||
ret; | ||
jmp .b9_; | ||
.b8_: | ||
print v6_; | ||
ret; | ||
.b9_: | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters