arm: provide emulation for SLJIT_CTZ in ARMv6#187
Merged
zherczeg merged 1 commit intozherczeg:masterfrom Aug 23, 2023
Merged
Conversation
zherczeg
requested changes
Aug 22, 2023
Owner
zherczeg
left a comment
There was a problem hiding this comment.
There was a code for this when armv5 support was removed, maybe it can be restored.
Since 3499aba (Set armv6 as the minimum arm version, 2023-04-07) the fallback code in use for ARMv5 was removed, but the RBIT instruction is not supported in ARMv6 so bring it back. A similar problem in the Thumb2 code is suspected as it should affect at least armv6t2 but a solution for it has been punted.
Owner
|
According to my documentation, RBIT is ARMv6T2, ARMv7 instruction, so Thumb code should not be affected. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Avoids SIGILL when running in older CPUs than armv7 (ex: Raspberry PI < 2)
Tested with QEMU using a softfp userland, but would work as well with hardfp (FPU is optional but common with those CPUs, even if it is not NEON).
Thumb2 with
march=armv6t2not addressed yet