]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #41206 - eddyb:avoid-illegal-vectors, r=nagisa
authorTim Neumann <mail@timnn.me>
Wed, 12 Apr 2017 12:45:46 +0000 (14:45 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Apr 2017 12:45:46 +0000 (14:45 +0200)
Fix pairs of doubles using an illegal <8 x i8> vector.

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>`.


Trivial merge