Skip to content
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

NEON64: enc: no inline asm for clang -O0 #97

Closed
wants to merge 1 commit into from

Conversation

mscdex
Copy link
Contributor

@mscdex mscdex commented Jul 18, 2022

This may not be the best fix, but it does allow compiling of debug builds with clang.

Also, as far as I can tell the NEON32 inline asm is not affected.

Fixes #96

@aklomp
Copy link
Owner

aklomp commented Jul 18, 2022

Hm, as mentioned in #96, I think there might be an easier fix, which is to have clang always load the encoding table with the vld1q_u8_x4 intrinsic. As far as I know, that intrinsic gets compiled correctly by clang, and will allocate four sequential registers. (GCC does not compile the intrinsic correctly and chooses four random registers.)

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.

clang build fails with inline ASM on NEON64 (Apple M1)
2 participants