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

Use Thumb2 consistently on armv7-apple-ios and armv7s-apple-ios #439

Closed
briansmith opened this issue Jan 31, 2017 · 2 comments
Closed

Use Thumb2 consistently on armv7-apple-ios and armv7s-apple-ios #439

briansmith opened this issue Jan 31, 2017 · 2 comments

Comments

@briansmith
Copy link
Owner

From some PerlAsm, this is apparently the way to do this:

#if __ARM_MAX_ARCH__>=7
.arch	armv7-a
.fpu	neon

.text
.syntax	unified 	@ ARMv7-capable assembler is expected to handle this
#if defined(__thumb2__) && !defined(__APPLE__)
.thumb
#else
.code   32
# undef __thumb2__
#endif

That may be for an older version of the iOS toolchain; newer versions of the iOS toolchain might understand .thumb the same way as other toolchains.

@briansmith
Copy link
Owner Author

In particular, x25519-asm-arm.S isn't using Thumb-2 yet.

@briansmith
Copy link
Owner Author

Closing this because 32-bit iOS isn't a thing anymore.

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

No branches or pull requests

1 participant