Skip to content

xtensa/memcpy.S: Fix invalid asm code #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: esp_based_on_4_1_0
Choose a base branch
from

Conversation

berolinux
Copy link

"srli a11, a8, 30" is invalid, srli shifts by 0 to 15 bits. Some assemblers (e.g. gas 2.40) automatically translate a srli statement with > 15 bit shift to an extui statement, some others (clang 16 with espressif patches) don't.

Using extui works with both.

Closes #11

"srli a11, a8, 30" is invalid, srli shifts by 0 to 15 bits.
Some assemblers (e.g. gas 2.40) automatically translate a srli
statement with > 15 bit shift to an extui statement, some others
(clang 16 with espressif patches) don't.

Using extui works with both.

Closes espressif#11
@berolinux berolinux force-pushed the work/bero/fixes/memcpy-asm branch from 4dc7a53 to 5f67d2a Compare May 31, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid asm code in newlib/libc/machine/xtensa/memcpy.S
1 participant