A two-state reduction AND of an all-ones vector such as 981 or 2051 bits currently returns zero because unused high bits of the last storage word are included. In both the x86-64 and AArch64 backends, fill that padding with ones before reducing and iterate over the declared source width.
Add a shared regression that checks the all-ones value and clears each of the 981 declared bits individually. It passes native, Cranelift, Wasm and parallel variants on x86-64, plus Verilator and Icarus. Run its native and native-parallel variants in the ARM64 CI job as well.
Add a direct AArch64 regression for widths 1, 63, 64, 65, 127, 128, 129, 981, 1024 and 2051, including widening the one-bit result. It generates AArch64 code on every host; on AArch64 Linux it executes each all-ones value and every single-cleared-bit value, then verifies restoration.
Validation: 611 x86 native unit tests and 47 AArch64 backend tests on x86-64; focused shared SV regression; affected backend Clippy and formatting; AArch64-target test compilation using the installed Rust 1.99.1 toolchain; 16 CI workflow script tests and actionlint (ignoring its outdated runner-label catalogue for the existing ubuntu-26.04-arm label). Related wide-operator, four-state and parameterized-operation consumers also passed. AArch64 machine-code execution requires the ARM CI runner and was not run locally.
Change-Id: I57339044d93504b32e95b254505a76153682d1f6
A two-state reduction AND of an all-ones vector such as 981 or 2051 bits currently returns zero because unused high bits of the last storage word are included. In both the x86-64 and AArch64 backends, fill that padding with ones before reducing and iterate over the declared source width.
Add a shared regression that checks the all-ones value and clears each of the 981 declared bits individually. It passes native, Cranelift, Wasm and parallel variants on x86-64, plus Verilator and Icarus. Run its native and native-parallel variants in the ARM64 CI job as well.
Add a direct AArch64 regression for widths 1, 63, 64, 65, 127, 128, 129, 981, 1024 and 2051, including widening the one-bit result. It generates AArch64 code on every host; on AArch64 Linux it executes each all-ones value and every single-cleared-bit value, then verifies restoration.
Validation: 611 x86 native unit tests and 47 AArch64 backend tests on x86-64; focused shared SV regression; affected backend Clippy and formatting; AArch64-target test compilation using the installed Rust 1.99.1 toolchain; 16 CI workflow script tests and actionlint (ignoring its outdated runner-label catalogue for the existing ubuntu-26.04-arm label). Related wide-operator, four-state and parameterized-operation consumers also passed. AArch64 machine-code execution requires the ARM CI runner and was not run locally.