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

Fix pairs of doubles using an illegal <8 x i8> vector. #41206

Merged
merged 1 commit into from
Apr 12, 2017

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Apr 10, 2017

Accidentally introduced in #40658 and discovered in some Objective-C bindings (returning NSPoint).
Turns out LLVM will widen element types of illegal vectors instead of increasing element count, i.e. it will zero-extend <8 x i8> to <8 x i16>, interleaving the bytes, instead of using the first 8 of <16 x i8>.

@rust-highfive
Copy link
Collaborator

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@eddyb
Copy link
Member Author

eddyb commented Apr 11, 2017

@bors r=nagisa

@bors
Copy link
Contributor

bors commented Apr 11, 2017

📌 Commit 0303a33 has been approved by nagisa

@bors
Copy link
Contributor

bors commented Apr 11, 2017

⌛ Testing commit 0303a33 with merge fadf6ca...

@bors
Copy link
Contributor

bors commented Apr 11, 2017

💔 Test failed - status-appveyor

@TimNN
Copy link
Contributor

TimNN commented Apr 11, 2017

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 12, 2017
Fix pairs of doubles using an illegal <8 x i8> vector.

Accidentally introduced in rust-lang#40658 and discovered in some Objective-C bindings (returning `NSPoint`).
Turns out LLVM will widen element types of illegal vectors instead of increasing element count, i.e. it will zero-extend `<8 x i8>` to `<8 x i16>`, interleaving the bytes, instead of using the first 8 of `<16 x i8>`.
TimNN added a commit to TimNN/rust that referenced this pull request Apr 12, 2017
Fix pairs of doubles using an illegal <8 x i8> vector.

Accidentally introduced in rust-lang#40658 and discovered in some Objective-C bindings (returning `NSPoint`).
Turns out LLVM will widen element types of illegal vectors instead of increasing element count, i.e. it will zero-extend `<8 x i8>` to `<8 x i16>`, interleaving the bytes, instead of using the first 8 of `<16 x i8>`.
bors added a commit that referenced this pull request Apr 12, 2017
Rollup of 9 pull requests

- Successful merges: #41063, #41087, #41141, #41166, #41183, #41205, #41206, #41232, #41243
- Failed merges:
@bors bors merged commit 0303a33 into rust-lang:master Apr 12, 2017
@eddyb eddyb deleted the avoid-illegal-vectors branch April 12, 2017 16:07
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.

5 participants