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

LASTP: Scalar index of last true predicate element (predicated)

LASTP Xd, Pg, Pn.H (SVE2.2 (SME2.2

128-bit SVE

Considering only bits corresponding to 16-bit elements, set (3) to the index of the last (leftmost) element where the corresponding predicate bit is set in both (1) and (2). If no such element exists, set (3) to -1.

256-bit SVE

Considering only bits corresponding to 16-bit elements, set (3) to the index of the last (leftmost) element where the corresponding predicate bit is set in both (1) and (2). If no such element exists, set (3) to -1.

512-bit SVE

Considering only bits corresponding to 16-bit elements, set (3) to the index of the last (leftmost) element where the corresponding predicate bit is set in both (1) and (2). If no such element exists, set (3) to -1.

Larger sizes

1024-bit SVE

Considering only bits corresponding to 16-bit elements, set (3) to the index of the last (leftmost) element where the corresponding predicate bit is set in both (1) and (2). If no such element exists, set (3) to -1.

2048-bit SVE

Considering only bits corresponding to 16-bit elements, set (3) to the index of the last (leftmost) element where the corresponding predicate bit is set in both (1) and (2). If no such element exists, set (3) to -1.

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