-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[spirv-ll] Fix signed ints and duplicate types in 'Kernel' tests
This goes a long to way towards cleaning up our LIT tests. It was found that many of them were breaking validation rule 2.16.3: Validation Rules for Kernel Capabilities * The Signedness in OpTypeInt must always be 0. It's unclear how this made it into the tests. Presumably they were auto-generated at one point, but I couldn't find the script. I've gone through all such tests and corrected them to use integers without signedness information. This includes 8-, 16-, and 64-bit integers, which `spirv-val` incorrectly lets slip. I've also managed to delete a bunch of redundant tests. For instance, there's no such operation as `s_bitselect` so the tests are now functionally equivalent to the `u_bitselect` tests. This goes also for the tests for "signed" `clz`, `popcount`, `prefetch` `rotate`, `select`, `shuffle` and `shuffle2` operations. There are some additional redundant test *functions* in cases like the tests for `OpGroup` where there were separate tests for integers with signedness and for those without. However, since the operations themselves don't care for signedness, the two tests became functionally identical. Note are tests are still not 'clean'; more (hopefully less impactful) fixes will follow.
- Loading branch information
1 parent
c1f8da5
commit 146f357
Showing
626 changed files
with
519 additions
and
10,863 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
Oops, something went wrong.