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

FIRSTP: Scalar index of first true predicate element (predicated)

FIRSTP Xd, Pg, Pn.B (SVE2.2 (SME2.2

128-bit SVE

Set (3) to the index of the first (rightmost) 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

Set (3) to the index of the first (rightmost) 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

Set (3) to the index of the first (rightmost) 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

Set (3) to the index of the first (rightmost) 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

Set (3) to the index of the first (rightmost) 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.