Skip to content

Add some SSE _mm_cvt* instructions #136

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

Merged
merged 3 commits into from
Oct 23, 2017

Conversation

nominolo
Copy link
Contributor

Implements:

  • _mm_cvtss_si32
  • _mm_cvt_ss2si
  • _mm_cvtss_si64
  • _mm_cvttss_si32
  • _mm_cvtt_ss2si
  • _mm_cvttss_si64
  • _mm_cvtsi32_ss
  • _mm_cvt_si2ss
  • _mm_cvtsi64_ss
  • _mm_cvtss_f32

Note that the following related instructions are currently blocked by #74

  • _mm_cvtps_pi32
  • _mm_cvt_ps2pi
  • _mm_cvttps_pi32
  • _mm_cvtt_ps2pi
  • _mm_cvtpi32_ps
  • _mm_cvt_pi2ps

The *_pi variants are currently blocked by
rust-lang#74
The _mm_cvtpi*_ps intrinsics are blocked by
rust-lang#74
@alexcrichton
Copy link
Member

Thanks! It looks like the tests are failing, but I think you can just remove the instruction suffix and they should pass?

@nominolo
Copy link
Contributor Author

Yeah, this might need some tinkering. On OSX it does actually use different instruction suffixes. The 32 bit failure might be a bit more complicated. I'll let you know when it's ready to merge.

Also the si64 variants are only available on x86_64
@nominolo
Copy link
Contributor Author

@alexcrichton OK, actually wasn't that difficult. Apparently, some of these intrinsics are only available on x86_64. Ready to merge.

@alexcrichton alexcrichton merged commit 2afb984 into rust-lang:master Oct 23, 2017
@alexcrichton
Copy link
Member

Great!

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.

2 participants