rust-lang / packed_simd

Portable Packed SIMD Vectors for Rust standard library
https://rust-lang.github.io/packed_simd/packed_simd_2/
Apache License 2.0
589 stars 74 forks source link

Unrecognized platform-specific intrinsic function: `simd_shuffle64` #356

Open tustvold opened 1 year ago

tustvold commented 1 year ago

The packed_simd_2 crate fails to compile on the latest nightly with errors about simd_shuffle64

error: unrecognized platform-specific intrinsic function: `simd_shuffle64`
  --> /home/raphael/.cargo/registry/src/index.crates.io-6f17d22bba15001f/packed_simd_2-0.3.8/src/codegen/llvm.rs:15:5
KonradHoeffner commented 1 year ago

I think this is caused by https://github.com/rust-lang/rust/commit/4457ef2c6db2aa65aeaba084d2d85f3355595f5a.

KonradHoeffner commented 1 year ago

However this seems to be fixed in <8b5a04f38f42e62babd37dad0c807d44453a0549>, maybe this version is not released yet?

KonradHoeffner commented 1 year ago

Ah OK I got it now, you need to replace packed_simd2 version 0.3.8 with packed_simd (without the "2") version 0.3.9. This fixes the error.

glandium commented 1 year ago

Should a packed_simd_2 0.3.9 be published with a dependency and re-export of packed_simd 0.3.9?

KonradHoeffner commented 1 year ago

I think this could be very helpful to prevent breaks for all users of new nightly Rust versions who depend on packed_simd2.