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

Miri ICEs on non-power-of-2 SIMD vectors #3458

Open
RalfJung opened this issue Apr 6, 2024 · 0 comments
Open

Miri ICEs on non-power-of-2 SIMD vectors #3458

RalfJung opened this issue Apr 6, 2024 · 0 comments
Labels
A-shims Area: This affects the external function shims C-bug Category: This is a bug. I-ICE Impact: makes Miri crash with some ICE

Comments

@RalfJung
Copy link
Member

RalfJung commented Apr 6, 2024

#![feature(core_intrinsics)]
#![feature(repr_simd)]

use core::intrinsics::simd::*;

#[repr(simd)]
struct Simd<T, const N: usize>(pub [T; N]);

fn main() { unsafe {
    let v1 = Simd([1u32; 3]);
    let v2 = Simd([2u32; 3]);
    let v3 = simd_add(v1, v2);
    assert_eq!(v3.0, [3u32; 3]);
} }

Cc rust-lang/portable-simd#319

@RalfJung RalfJung added C-bug Category: This is a bug. A-shims Area: This affects the external function shims I-ICE Impact: makes Miri crash with some ICE labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-shims Area: This affects the external function shims C-bug Category: This is a bug. I-ICE Impact: makes Miri crash with some ICE
Projects
None yet
Development

No branches or pull requests

1 participant