Skip to content

x86 MSVC does not use SSE(2) #27646

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

Closed
hanna-kruppe opened this issue Aug 10, 2015 · 3 comments
Closed

x86 MSVC does not use SSE(2) #27646

hanna-kruppe opened this issue Aug 10, 2015 · 3 comments

Comments

@hanna-kruppe
Copy link
Contributor

@cmr noticed this on IRC. On i686-pc-windows-gnu and in fact on all other i686-* triples (except iOS, which is technically called i386-*), a SSE2-capable microarchitecture is assumed. @dotdash said that this was copied from Clang. Not doing so on MSVC might be an accident, and a rather costly one.

@emberian
Copy link
Member

Specifically, in the target spec, we have: https://github.com/rust-lang/rust/blob/master/src/librustc_back/target/i686_pc_windows_msvc.rs#L15, unlike every other i686 target which assumes pentium4 (except for Mac, which assumes yonah, which is newer, so that's fine).

@emberian
Copy link
Member

cc @alexcrichton, who wrote that code. Is this an intentional quirk of the MSVC toolchain?

@alexcrichton
Copy link
Member

Oh dear no this was not intentional at all, I just assumed everything was i686! Feel free to send a PR to update!

emberian added a commit that referenced this issue Aug 10, 2015
This is in line with other targets.

Closes #27646
Manishearth added a commit to Manishearth/rust that referenced this issue Aug 11, 2015
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

No branches or pull requests

3 participants