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

PTEST: Set condition flags for predicate

PTEST Pg, Pn.B (SVE (SME
bool svptest_any(svbool_t pg, svbool_t op)
bool svptest_first(svbool_t pg, svbool_t op)
bool svptest_last(svbool_t pg, svbool_t op)

128-bit SVE

Set flags (NZCV) based on a governing predicate (1), and a predicate (2).

Non-zero bits in the governing predicate (1) indicate active lanes. Bits from inactive lanes of (2) are ignored.

The flags are set as follows:

256-bit SVE

Set flags (NZCV) based on a governing predicate (1), and a predicate (2).

Non-zero bits in the governing predicate (1) indicate active lanes. Bits from inactive lanes of (2) are ignored.

The flags are set as follows:

512-bit SVE

Set flags (NZCV) based on a governing predicate (1), and a predicate (2).

Non-zero bits in the governing predicate (1) indicate active lanes. Bits from inactive lanes of (2) are ignored.

The flags are set as follows:


Larger sizes

1024-bit SVE

Set flags (NZCV) based on a governing predicate (1), and a predicate (2).

Non-zero bits in the governing predicate (1) indicate active lanes. Bits from inactive lanes of (2) are ignored.

The flags are set as follows:

2048-bit SVE

Set flags (NZCV) based on a governing predicate (1), and a predicate (2).

Non-zero bits in the governing predicate (1) indicate active lanes. Bits from inactive lanes of (2) are ignored.

The flags are set as follows:


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