You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support simd_reduce_max (reached by core::arch::aarch64::vmaxvq_u8 / <[u8]>::is_ascii) #4954
simd_reduce_max is not implemented, so any code reaching it is reported as an unsupported construct. In the standard library that includes core::arch::aarch64::vmaxvq_u8, which <[u8]>::is_ascii now uses on aarch64 with NEON (is_ascii_neon).
Reproducer
#![feature(core_intrinsics, repr_simd)]#![allow(internal_features, non_camel_case_types)]#[repr(simd)]#[derive(Clone,Copy)]pubstructu8x16([u8;16]);#[kani::proof]fncheck_reduce_max(){let lanes:[u8;16] = kani::any();let max = unsafe{ core::intrinsics::simd::simd_reduce_max(u8x16(lanes))};assert!(lanes.iter().all(|&l| l <= max));}
$ kani main.rsFailed Checks: simd_reduce_max is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/chooseVERIFICATION:- FAILED
Reproduced on main (1640445d). Only simd_reduce_all is listed in kani-compiler/src/intrinsics.rs.
Failed Checks: simd_reduce_max is not currently supported by Kani.
File: stdarch/crates/core_arch/src/aarch64/neon/generated.rs, line 12378, in vmaxvq_u8
The harness is already compiled out on x86_64 + SSE2 for a different Kani limitation, so it currently runs only on aarch64. Until this is supported we'll compile it out on aarch64 + NEON too, which means it runs on neither CI platform. Supporting simd_reduce_max (and probably simd_reduce_min, same shape: a fold over the lanes) would let us switch it back on.
Activity
Compile out check_is_ascii on aarch64 + NEON pending kani#4954
Support `simd_reduce_max` and `simd_reduce_min` on integer lanes (mod…