Skip to content

Tests fail on latest nightly #546

Description

@bjorn3

I tried this code:
cargo test on the copy of portable-simd in the standard library.

I expected to see this happen: Tests pass

Instead, this happened:

Details
f32::simd_min::lanes_57 --- FAILED
f32::simd_min::lanes_13 --- FAILED
f32::simd_max::lanes_9 --- FAILED
f32::simd_max::lanes_13 --- FAILED
f32::simd_max::lanes_5 --- FAILED
f32::simd_min::lanes_5 --- FAILED
f32::simd_min::lanes_9 --- FAILED
f32::simd_min::lanes_17 --- FAILED
f32::simd_max::lanes_57 --- FAILED
f32::simd_max::lanes_17 --- FAILED

failures:

---- f32::simd_min::lanes_57 stdout ----
---- f32::simd_min::lanes_57 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863974) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[-0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -1.0945809e-38 (80773076), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), -121.91608 (c2f3d508), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000)]`,
 right: `[-0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -1.0945809e-38 (80773076), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), -121.91608 (c2f3d508), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -1.0945809e-38,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        -0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        NaN,
    ],
    [
        4.6565347,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        9.749021e-39,
        0.0,
        0.0,
        0.0,
        0.0,
        7.861827e30,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        8.3854665e-23,
        0.0,
        NaN,
        0.0,
        0.0,
        -121.91608,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 57], [f32; 57])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 57], [f32; 57]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 57>, core_simd::core_simd::vector::Simd<f32, 57>, core_simd::core_simd::vector::Simd<f32, 57>, 57>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_min::implementation::<57>
             at ./tests/ops_macros.rs:601:21
   6: f32_ops::f32::simd_min::lanes_57
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_min::lanes_57::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_min::lanes_57::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_min::lanes_13 stdout ----
---- f32::simd_min::lanes_13 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863965) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), -2.661377e-39 (801cfad6), -2.7769318e-23 (9a0648c0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), -0.0 (80000000)]`,
 right: `[0.0 (0), -2.661377e-39 (801cfad6), -2.7769318e-23 (9a0648c0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        -2.661377e-39,
        -2.7769318e-23,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        4.7515964e-9,
        0.0,
        NaN,
    ],
    [
        0.0,
        -0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 13], [f32; 13])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 13], [f32; 13]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 13>, core_simd::core_simd::vector::Simd<f32, 13>, core_simd::core_simd::vector::Simd<f32, 13>, 13>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_min::implementation::<13>
             at ./tests/ops_macros.rs:601:21
   6: f32_ops::f32::simd_min::lanes_13
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_min::lanes_13::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_min::lanes_13::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_max::lanes_9 stdout ----
---- f32::simd_max::lanes_9 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863942) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 5.407978e-39 (3ae33e), 0.0 (0)]`,
 right: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 5.407978e-39 (3ae33e), -0.0 (80000000)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        5.407978e-39,
        NaN,
    ],
    [
        0.0,
        0.0,
        0.0,
        0.0,
        NaN,
        0.0,
        0.0,
        -0.0,
        -0.0,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 9], [f32; 9])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 9], [f32; 9]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 9>, core_simd::core_simd::vector::Simd<f32, 9>, core_simd::core_simd::vector::Simd<f32, 9>, 9>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_max::implementation::<9>
             at ./tests/ops_macros.rs:624:21
   6: f32_ops::f32::simd_max::lanes_9
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_max::lanes_9::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_max::lanes_9::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_max::lanes_13 stdout ----
---- f32::simd_max::lanes_13 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863830) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.20216237 (3e4f03a7), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 21955.053 (46ab861b)]`,
 right: `[0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.20216237 (3e4f03a7), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -21955.053 (c6ab861b)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.20216237,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        NaN,
    ],
    [
        0.0,
        NaN,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -21955.053,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 13], [f32; 13])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 13], [f32; 13]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 13>, core_simd::core_simd::vector::Simd<f32, 13>, core_simd::core_simd::vector::Simd<f32, 13>, 13>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_max::implementation::<13>
             at ./tests/ops_macros.rs:624:21
   6: f32_ops::f32::simd_max::lanes_13
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_max::lanes_13::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_max::lanes_13::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_max::lanes_5 stdout ----
---- f32::simd_max::lanes_5 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863844) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), 256133.64 (487a2169), 0.0 (0), 0.0 (0), 1.7994308e-8 (329a91e7)]`,
 right: `[0.0 (0), 256133.64 (487a2169), 0.0 (0), 0.0 (0), -1.7994308e-8 (b29a91e7)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        -0.0,
        0.0,
        0.0,
        NaN,
    ],
    [
        0.0,
        256133.64,
        0.0,
        0.0,
        -1.7994308e-8,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 5], [f32; 5])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 5], [f32; 5]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 5>, core_simd::core_simd::vector::Simd<f32, 5>, core_simd::core_simd::vector::Simd<f32, 5>, 5>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_max::implementation::<5>
             at ./tests/ops_macros.rs:624:21
   6: f32_ops::f32::simd_max::lanes_5
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_max::lanes_5::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_max::lanes_5::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_min::lanes_5 stdout ----
---- f32::simd_min::lanes_5 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863970) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000)]`,
 right: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        0.0,
        0.0,
        0.0,
        NaN,
    ],
    [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 5], [f32; 5])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 5], [f32; 5]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 5>, core_simd::core_simd::vector::Simd<f32, 5>, core_simd::core_simd::vector::Simd<f32, 5>, 5>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_min::implementation::<5>
             at ./tests/ops_macros.rs:601:21
   6: f32_ops::f32::simd_min::lanes_5
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_min::lanes_5::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_min::lanes_5::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_min::lanes_9 stdout ----
---- f32::simd_min::lanes_9 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863928) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000)]`,
 right: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        NaN,
    ],
    [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 9], [f32; 9])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 9], [f32; 9]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 9>, core_simd::core_simd::vector::Simd<f32, 9>, core_simd::core_simd::vector::Simd<f32, 9>, 9>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_min::implementation::<9>
             at ./tests/ops_macros.rs:601:21
   6: f32_ops::f32::simd_min::lanes_9
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_min::lanes_9::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_min::lanes_9::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_min::lanes_17 stdout ----
---- f32::simd_min::lanes_17 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863914) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.007325086 (bbf00746), -0.0 (80000000)]`,
 right: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.007325086 (bbf00746), 0.0 (0)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        NaN,
    ],
    [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.007325086,
        0.0,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 17], [f32; 17])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 17], [f32; 17]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 17>, core_simd::core_simd::vector::Simd<f32, 17>, core_simd::core_simd::vector::Simd<f32, 17>, 17>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_min::implementation::<17>
             at ./tests/ops_macros.rs:601:21
   6: f32_ops::f32::simd_min::lanes_17
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_min::lanes_17::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_min::lanes_17::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_max::lanes_57 stdout ----
---- f32::simd_max::lanes_57 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863885) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 5.2200956e29 (70d2d686), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), -0.0 (80000000), 4.989725e-39 (365553), 0.0 (0), 6.9516575e16 (5b76f8f5)]`,
 right: `[0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 5.2200956e29 (70d2d686), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -0.0 (80000000), -0.0 (80000000), 4.989725e-39 (365553), 0.0 (0), -6.9516575e16 (db76f8f5)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -7.744305e-31,
        0.0,
        -2.93725e-7,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0036070868,
        0.0,
        0.0,
        0.0,
        0.0,
        5.2200956e29,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        -436.10486,
        -0.0,
        0.0,
        NaN,
    ],
    [
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -194282740000000.0,
        -0.0,
        4.989725e-39,
        0.0,
        -6.9516575e16,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 57], [f32; 57])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 57], [f32; 57]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 57>, core_simd::core_simd::vector::Simd<f32, 57>, core_simd::core_simd::vector::Simd<f32, 57>, 57>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_max::implementation::<57>
             at ./tests/ops_macros.rs:624:21
   6: f32_ops::f32::simd_max::lanes_57
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_max::lanes_57::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_max::lanes_57::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

---- f32::simd_max::lanes_17 stdout ----
---- f32::simd_max::lanes_17 stderr ----
proptest: FileFailurePersistence::SourceParallel set, but no source file known
proptest: FileFailurePersistence::SourceParallel set, but no source file known

thread 'main' (863840) panicked at crates/test_helpers/src/lib.rs:149:5:
Test failed: assertion failed: `(left == right)` 
  left: `[0.0 (0), 0.0 (0), 0.0 (0), 1.2350979e-11 (2d5947dd), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 8.530873e21 (63e73ad3)]`,
 right: `[0.0 (0), 0.0 (0), 0.0 (0), 1.2350979e-11 (2d5947dd), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), 0.0 (0), -8.530873e21 (e3e73ad3)]` at crates/test_helpers/src/lib.rs:336.
minimal failing input: (
    [
        0.0,
        0.0,
        0.0,
        -0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        NaN,
    ],
    [
        0.0,
        0.0,
        0.0,
        1.2350979e-11,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        -8.530873e21,
    ],
)
stack backtrace:
   0: __rustc::rust_begin_unwind
             at /home/bjorn/cg_clif/build/stdlib/library/std/src/panicking.rs:679:5
   1: core::panicking::panic_fmt
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/panicking.rs:80:14
   2: test_helpers::unwrap_test_error::<(), ([f32; 17], [f32; 17])>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:132:19
   3: test_helpers::test_2::<[f32; 17], [f32; 17]>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:149:5
   4: test_helpers::test_binary_elementwise::<f32, f32, f32, core_simd::core_simd::vector::Simd<f32, 17>, core_simd::core_simd::vector::Simd<f32, 17>, core_simd::core_simd::vector::Simd<f32, 17>, 17>
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:325:5
   5: f32_ops::f32::simd_max::implementation::<17>
             at ./tests/ops_macros.rs:624:21
   6: f32_ops::f32::simd_max::lanes_17
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:581:17
   7: f32_ops::f32::simd_max::lanes_17::{closure#0}
             at /home/bjorn/cg_clif/build/portable-simd/crates/test_helpers/src/lib.rs:580:26
   8: <f32_ops::f32::simd_max::lanes_17::{closure#0} as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
   9: <fn() -> core::result::Result<(), alloc::string::String> as core::ops::function::FnOnce<()>>::call_once
             at /home/bjorn/cg_clif/build/stdlib/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    f32::simd_max::lanes_13
    f32::simd_max::lanes_17
    f32::simd_max::lanes_5
    f32::simd_max::lanes_57
    f32::simd_max::lanes_9
    f32::simd_min::lanes_13
    f32::simd_min::lanes_17
    f32::simd_min::lanes_5
    f32::simd_min::lanes_57
    f32::simd_min::lanes_9

Meta

rustc --version --verbose:

rustc 1.99.0-nightly (84b36a78a 2026-08-06)
binary: rustc
commit-hash: 84b36a78a28a63f134171c670be1932ffa2485f8
commit-date: 2026-08-06
host: x86_64-unknown-linux-gnu
release: 1.99.0-nightly
LLVM version: 23.1.0

Found in cg_clif's CI when running tests with cg_llvm: https://github.com/rust-lang/rustc_codegen_cranelift/actions/runs/31185068027/job/92887435121

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions