-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not emit undefined lshr/ashr for Neon shifts
In LLVM the lshr and ashr instruction is undefined when the amount is equal to the element size, but Neon shifts support such shifts. With signed values, when shifting by the element size is requested subtract one as right shifting a signed value by its size is equivalent to a shift of size - 1. When shifting an unsigned value by the element size, return a vector of all 0's as that's what the shift would result in.
- Loading branch information
1 parent
05e32d4
commit e738287
Showing
4 changed files
with
65 additions
and
21 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