-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the xls_ir_equivalence_test rule actually function as a test.
Previously the test would always be considered passing because the checker exited 0 in all circumstances. Make the checker exit non-zero (255) if the expected outcome is not seen. PiperOrigin-RevId: 666993715
- Loading branch information
1 parent
6c8c014
commit d374f5f
Showing
7 changed files
with
64 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
package add_pkg | ||
|
||
top fn add(a: bits[8], b: bits[8]) -> bits[8] { | ||
ret add.3: bits[8] = add(a, b, id=3) | ||
} |
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,8 @@ | ||
package add_pkg | ||
|
||
top fn add(a: bits[8], b: bits[8]) -> bits[8] { | ||
bit_slice.3: bits[4] = bit_slice(a, start=0, width=4, id=3) | ||
bit_slice.4: bits[4] = bit_slice(b, start=0, width=4, id=4) | ||
add.5: bits[4] = add(bit_slice.3, bit_slice.4, id=5) | ||
ret zero_ext.6: bits[8] = zero_ext(add.5, new_bit_count=8, id=6) | ||
} |