Skip to content

core_arch feature breaks into_bits #230

Open
@TheIronBorn

Description

@TheIronBorn

with features = ["into_bits", "core_arch"] and code like this:

use packed_simd::*;
use std::arch::x86_64::*;

pub fn foo(x: __m128d) -> f64x2 {
    f64x2::from_bits(x)
}

rust gives:

error[E0277]: the trait bound `packed_simd::Simd<[f64; 2]>: packed_simd::api::into_bits::FromBits<std::arch::x86_64::__m128d>` is not satisfied
 --> src\lib.rs:5:5
  |
5 |     f64x2::from_bits(x)
  |     ^^^^^^^^^^^^^^^^ the trait `packed_simd::api::into_bits::FromBits<std::arch::x86_64::__m128d>` is not implemented for `packed_simd::Simd<[f64; 2]>`
  |
  = help: the following implementations were found:
            <packed_simd::Simd<[f32; 16]> as packed_simd::api::into_bits::FromBits<packed_simd::Simd<[f64; 8]>>>
            <packed_simd::Simd<[f32; 16]> as packed_simd::api::into_bits::FromBits<packed_simd::Simd<[i128; 4]>>>
            <packed_simd::Simd<[f32; 16]> as packed_simd::api::into_bits::FromBits<packed_simd::Simd<[i16; 32]>>>
            <packed_simd::Simd<[f32; 16]> as packed_simd::api::into_bits::FromBits<packed_simd::Simd<[i32; 16]>>>
          and 772 others
  = note: required by `packed_simd::api::into_bits::FromBits::from_bits`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.

features = ["into_bits"] compiles fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions