SVE Instruction List by Dougall Johnson
CLASTA (SIMD&FP scalar): Conditionally extract element after last to SIMD&FP scalar register
CLASTA Bdn, Pg, Bdn, Zm.B (SVE (SME
int8_t svclasta[_n_s8](svbool_t pg, int8_t fallback, svint8_t data)
uint8_t svclasta[_n_u8](svbool_t pg, uint8_t fallback, svuint8_t data)
128-bit SVE
Find the last (leftmost) 8-bit element from (2) where the corresponding predicate bit in (1) is non-zero, then set (4) to the next element. If the last corresponding predicate bit is non-zero, set (4) to the first (rightmost) element from (1). If all corresponding predicate bits are zero, preserve the value from the first 8-bit element of (3), zeroing all other elements.
256-bit SVE
Find the last (leftmost) 8-bit element from (2) where the corresponding predicate bit in (1) is non-zero, then set (4) to the next element. If the last corresponding predicate bit is non-zero, set (4) to the first (rightmost) element from (1). If all corresponding predicate bits are zero, preserve the value from the first 8-bit element of (3), zeroing all other elements.
512-bit SVE
Find the last (leftmost) 8-bit element from (2) where the corresponding predicate bit in (1) is non-zero, then set (4) to the next element. If the last corresponding predicate bit is non-zero, set (4) to the first (rightmost) element from (1). If all corresponding predicate bits are zero, preserve the value from the first 8-bit element of (3), zeroing all other elements.
Larger sizes
1024-bit SVE
Find the last (leftmost) 8-bit element from (2) where the corresponding predicate bit in (1) is non-zero, then set (4) to the next element. If the last corresponding predicate bit is non-zero, set (4) to the first (rightmost) element from (1). If all corresponding predicate bits are zero, preserve the value from the first 8-bit element of (3), zeroing all other elements.
2048-bit SVE
Find the last (leftmost) 8-bit element from (2) where the corresponding predicate bit in (1) is non-zero, then set (4) to the next element. If the last corresponding predicate bit is non-zero, set (4) to the first (rightmost) element from (1). If all corresponding predicate bits are zero, preserve the value from the first 8-bit element of (3), zeroing all other elements.
Report mistakes or give feedback
Inspired by and based on the x86/x64 SIMD Instruction List by Daytime.