SVE Instruction List by Dougall Johnson
See "COMPACT" in the exploration tools

COMPACT: Copy Active vector elements to lower-numbered elements

COMPACT Zd.B, Pg, Zn.B (SVE2.2+NS (SME2.2

128-bit SVE

Select the 8-bit lanes from (1) where the corresponding predicate bit in (2) is set, and pack them into low lanes of (3), preserving their order, zeroing any high lanes.

256-bit SVE

Select the 8-bit lanes from (1) where the corresponding predicate bit in (2) is set, and pack them into low lanes of (3), preserving their order, zeroing any high lanes.

512-bit SVE

Select the 8-bit lanes from (1) where the corresponding predicate bit in (2) is set, and pack them into low lanes of (3), preserving their order, zeroing any high lanes.

Larger sizes

1024-bit SVE

Select the 8-bit lanes from (1) where the corresponding predicate bit in (2) is set, and pack them into low lanes of (3), preserving their order, zeroing any high lanes.

2048-bit SVE

Select the 8-bit lanes from (1) where the corresponding predicate bit in (2) is set, and pack them into low lanes of (3), preserving their order, zeroing any high lanes.

Report mistakes or give feedback
Inspired by and based on the x86/x64 SIMD Instruction List by Daytime.