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

Add AVX2 gathers #202

Merged
merged 10 commits into from Nov 22, 2017
Merged

Add AVX2 gathers #202

merged 10 commits into from Nov 22, 2017

Conversation

AdamNiederer
Copy link
Contributor

I'm having some issues compiling stdsimd on my avx2 machine (#201). I'll fix the tests and add the remaining gather intrinsics once I resolve that.

@alexcrichton
Copy link
Member

Thanks! Looks like tests are failing though?

LLVM no longer throws a type error, and now throws

```
rustc: /checkout/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1084:
llvm::SDValue llvm::SelectionDAG::getConstant(uint64_t, const llvm::SDLoc&,
llvm::EVT, bool, bool): Assertion `(EltVT.getSizeInBits() >= 64
|| (uint64_t)((int64_t)Val >> EltVT.getSizeInBits()) + 1 < 2) && "getConstant
with a uint64_t value that doesn't fit in the type!"' failed.
```

instead.
Arrays are hard, okay?
Intel has tick-tock, I have tick-(fix the tests)
@AdamNiederer
Copy link
Contributor Author

We should be good to go! This adds all 32 gather intrinsics.

@gnzlbg gnzlbg merged commit 14cec94 into rust-lang:master Nov 22, 2017
@gnzlbg
Copy link
Contributor

gnzlbg commented Nov 22, 2017

Thanks!

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.

None yet

3 participants