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

Fix clang compatibility of jsimd_arm_neon.S #75

Closed
wants to merge 1 commit into from
Closed

Fix clang compatibility of jsimd_arm_neon.S #75

wants to merge 1 commit into from

Conversation

mattsarett
Copy link
Contributor

Clang only supports Unified Assembler Language (and not pre-UAL syntax). This is intentional.
https://llvm.org/bugs/show_bug.cgi?id=23507
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473c/BABJIHGJ.html

This means clang expects "strbeq" here. Unfortunately, it seems that my version of gcc only supports "streqb". So I think we need both variations here.

Clang only supports Unified Assembler Language (and not pre-UAL syntax).  This is intentional.
https://llvm.org/bugs/show_bug.cgi?id=23507
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473c/BABJIHGJ.html

This means clang expects "strbeq" here.  Unfortunately, it seems that my version of gcc only supports "streqb".  So I think we need both variations here.
@dcommander
Copy link
Member

I need more specifics on this. clang is used to build iOS code as well, and the versions I'm using on Mac don't seem to exhibit this issue. So I need to understand whether this issue affects only specific versions of clang.

@dcommander
Copy link
Member

Never mind. I see now that the reason why I wasn't seeing this issue on Mac is that we use -no-integrated-as to build the ARM32 code.

@dcommander dcommander closed this in fdddf6f May 2, 2016
dcommander pushed a commit that referenced this pull request May 2, 2016
By design, clang only supports Unified Assembler Language (and not
pre-UAL syntax):
https://llvm.org/bugs/show_bug.cgi?id=23507
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473c/BABJIHGJ.html

Thus, clang only supports the strbeq instruction and not streqb, but
unfortunately some versions of GCC only support streqb.  Go, go
Gadget #ifdef...

Based on mattsarett@a82e63aac63f8fa3
95fa4caad4de6859623ee2e2

Closes #75
@mattsarett
Copy link
Contributor Author

Thanks a lot for the speedy integration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants