-
Notifications
You must be signed in to change notification settings - Fork 386
also test simd_select_bitmask on arrays for less than 8 elements #3205
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
Conversation
@bors r+ |
also test simd_select_bitmask on arrays for less than 8 elements
💔 Test failed - checks-actions |
4a7cfac
to
9df8dba
Compare
…itmask also move the two next to each other
9df8dba
to
3a142f0
Compare
@workingjubilee @calebzulawski this code is causing a Miri UB error when run on a big-endian target: let bitmask = u8x4::from_array([0b00001101, 0, 0, 0]);
assert_eq!(
mask32x4::from_bitmask_vector(bitmask),
mask32x4::from_array([true, false, true, true]),
); It seems to be calling Currently what it does seems inconsistent with simd_bitmask. This is basically rust-lang/portable-simd#267 again, but for simd_select_bitmask rather than simd_bitmask. |
048c34c
to
2e66bec
Compare
Filed an issue: rust-lang/portable-simd#379 I think what Miri does here is right, or at least it is consistent with simd_bitmask and with rust-lang/portable-simd#267. So I'll land this. @bors r+ |
☀️ Test successful - checks-actions |
No description provided.