Skip to content

Define AVX compare and blend intrinsics #32231

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
Mar 14, 2016
Merged

Conversation

ruuda
Copy link
Contributor

@ruuda ruuda commented Mar 13, 2016

This defines the following intrinsics:

  • _mm256_blendv_pd
  • _mm256_blendv_ps
  • _mm256_cmp_pd
  • _mm256_cmp_ps

I verified these locally.

ruuda added 3 commits March 13, 2016 15:04
This defines `_mm256_cmp_pd` and `_mm256_cmp_ps`.

Intel reference: https://software.intel.com/en-us/node/524075.
This defines the `_mm256_blendv_pd` and `_mm256_blendv_ps` intrinsics.
The `_mm256_blend_pd` and `_mm256_blend_ps` intrinsics are not available
as LLVM intrinsics. In Clang they are implemented using the
shufflevector builtin.

Intel reference: https://software.intel.com/en-us/node/524070.
The exact command used was:

    $ cd src/etc/platform-intrinsics/x86
    $ python2 ../generator.py --format compiler-defs -i info.json   \
      sse.json sse2.json sse3.json ssse3.json sse41.json sse42.json \
      avx.json avx2.json fma.json                                   \
      > ../../../librustc_platform_intrinsics/x86.rs
@alexcrichton
Copy link
Member

@bors: r+ a394d50

@alexcrichton alexcrichton self-assigned this Mar 14, 2016
@bors
Copy link
Collaborator

bors commented Mar 14, 2016

⌛ Testing commit a394d50 with merge 170f470...

bors added a commit that referenced this pull request Mar 14, 2016
Define AVX compare and blend intrinsics

This defines the following intrinsics:

 * `_mm256_blendv_pd`
 * `_mm256_blendv_ps`
 * `_mm256_cmp_pd`
 * `_mm256_cmp_ps`

I verified these locally.
@bors bors merged commit a394d50 into rust-lang:master Mar 14, 2016
@ruuda ruuda deleted the avx-cmp-blend branch November 30, 2016 09:58
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.

3 participants