forked from triton-lang/triton
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cpu] Get more of test_random.py working (#77)
Two changes: 1. Lower mulhiui to mulhi_extended rather than a bunch of ext / trunc instructions. This greatly simplifies the code, as well as automatically gets it working for 64-bit inputs, which the previous implementation did not handle correctly 2. Only emit extsi if the result bitwidth is larger than the input bitwidth. Otherwise it fails validation. This gets the int64 tests in test_random.py passing. Fixes #71.
- Loading branch information
Showing
2 changed files
with
6 additions
and
16 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