-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Update i686-linux-android features to match android x86 ABI. #33651
Update i686-linux-android features to match android x86 ABI. #33651
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
0b213d1
to
148b5e4
Compare
Despite Android docs claiming this is supposed to target PentiumPRO (which is what i686 is, in fact), the SSSE3 was introduced with Intel Core. Thus, I think |
32-bit x86 compiler development is pretty much in maintenance mode so this change could probably end up a very small optimisation (as long as all those sse feature sets are available). But yeah, it's cleaner and more consistent to just add |
I have no idea why Google used PentiumPro as the base CPU, and that might be "pessimisation", but I included a link to official docs in this PR, and I think that having CPU (or any features for that matter) that differ from official requirement will only add to slight confusion in the future for anyone following the link. |
@Nercury they refer to the PentiumPro as the instruction set (i.e. the That being said and looking some history up, turns out pentium4 was such a disaster in core design that optimising for it might end up with worse results than optimising for PentiumPro. I guess the only true way to decide on the right choice would be to benchmark. |
@petevine this target is most useful for running in emulator, until we get the x86_64 target up. |
…i, r=alexcrichton Update i686-linux-android features to match android x86 ABI. Based on [android's official x86 ABI info](http://developer.android.com/ndk/guides/abis.html#x86), the x86 baseline CPU can be safely updated to `pentiumpro`, with the addition of `MMX`, `SSE`, `SSE2`, `SSE3`, `SSSE3` features. r? @alexcrichton
Based on android's official x86 ABI info, the x86 baseline CPU can be safely updated to
pentiumpro
, with the addition ofMMX
,SSE
,SSE2
,SSE3
,SSSE3
features.r? @alexcrichton