SVE Instruction List by Dougall Johnson
See "CLASTB (vectors)" in the exploration tools

CLASTB (vectors): Conditionally extract last element to vector register

CLASTB Zdn.S, Pg, Zdn.S, Zm.S (SVE (SME
svfloat32_t svclastb[_f32](svbool_t pg, svfloat32_t fallback, svfloat32_t data)
svint32_t svclastb[_s32](svbool_t pg, svint32_t fallback, svint32_t data)
svuint32_t svclastb[_u32](svbool_t pg, svuint32_t fallback, svuint32_t data)

128-bit SVE

Find the last (leftmost) 32-bit element from (2) where the corresponding predicate bit in (1) is non-zero, and broadcast it to all lanes of (4). If there are no such elements, preserve the value from (3).

256-bit SVE

Find the last (leftmost) 32-bit element from (2) where the corresponding predicate bit in (1) is non-zero, and broadcast it to all lanes of (4). If there are no such elements, preserve the value from (3).

512-bit SVE

Find the last (leftmost) 32-bit element from (2) where the corresponding predicate bit in (1) is non-zero, and broadcast it to all lanes of (4). If there are no such elements, preserve the value from (3).

Larger sizes

1024-bit SVE

Find the last (leftmost) 32-bit element from (2) where the corresponding predicate bit in (1) is non-zero, and broadcast it to all lanes of (4). If there are no such elements, preserve the value from (3).

2048-bit SVE

Find the last (leftmost) 32-bit element from (2) where the corresponding predicate bit in (1) is non-zero, and broadcast it to all lanes of (4). If there are no such elements, preserve the value from (3).

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