-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when using unroll_for! without index/acc type annotation.
- Loading branch information
1 parent
0af7633
commit 777cdd6
Showing
4 changed files
with
92 additions
and
22 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
19 changes: 19 additions & 0 deletions
19
xls/dslx/ir_convert/testdata/ir_converter_test_UnrollForWithoutIndexAccTypeAnnotation.ir
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,19 @@ | ||
package test_module | ||
|
||
file_number 0 "test_module.x" | ||
|
||
proc __test_module__SomeProc_0_next(__state: (), init={()}) { | ||
a: bits[32] = literal(value=0, id=4) | ||
literal.5: bits[32] = literal(value=0, id=5) | ||
a__1: bits[32] = add(a, literal.5, id=6) | ||
literal.7: bits[32] = literal(value=1, id=7) | ||
a__2: bits[32] = add(a__1, literal.7, id=8) | ||
literal.9: bits[32] = literal(value=2, id=9) | ||
a__3: bits[32] = add(a__2, literal.9, id=10) | ||
literal.11: bits[32] = literal(value=3, id=11) | ||
__token: token = literal(value=token, id=1) | ||
literal.3: bits[1] = literal(value=1, id=3) | ||
add.12: bits[32] = add(a__3, literal.11, id=12) | ||
tuple.13: () = tuple(id=13) | ||
next (tuple.13) | ||
} |
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