SVE Instruction List by Dougall Johnson
See "PTRUE (predicate)" in the exploration tools

PTRUE (predicate): Initialise predicate from named constraint

PTRUE Pd.D{, pattern} (SVE (SME
svbool_t svptrue_pat_b64(enum svpattern pattern)

128-bit SVE

If the constraint (pattern) can be satisfied, set the low predicate bits of (1) corresponding to 64-bit elements that match the constraint, zeroing all other bits. If the constraint cannot be satisfied, zero all bits of (1). If pattern is omitted, the ALL constraint is used.

On 128-bit SVE, the following predicate bits of (1) corresponding to 64-bit elements are set:

256-bit SVE

If the constraint (pattern) can be satisfied, set the low predicate bits of (1) corresponding to 64-bit elements that match the constraint, zeroing all other bits. If the constraint cannot be satisfied, zero all bits of (1). If pattern is omitted, the ALL constraint is used.

On 256-bit SVE, the following predicate bits of (1) corresponding to 64-bit elements are set:

512-bit SVE

If the constraint (pattern) can be satisfied, set the low predicate bits of (1) corresponding to 64-bit elements that match the constraint, zeroing all other bits. If the constraint cannot be satisfied, zero all bits of (1). If pattern is omitted, the ALL constraint is used.

On 512-bit SVE, the following predicate bits of (1) corresponding to 64-bit elements are set:


Larger sizes

1024-bit SVE

If the constraint (pattern) can be satisfied, set the low predicate bits of (1) corresponding to 64-bit elements that match the constraint, zeroing all other bits. If the constraint cannot be satisfied, zero all bits of (1). If pattern is omitted, the ALL constraint is used.

On 1024-bit SVE, the following predicate bits of (1) corresponding to 64-bit elements are set:

2048-bit SVE

If the constraint (pattern) can be satisfied, set the low predicate bits of (1) corresponding to 64-bit elements that match the constraint, zeroing all other bits. If the constraint cannot be satisfied, zero all bits of (1). If pattern is omitted, the ALL constraint is used.

On 2048-bit SVE, the following predicate bits of (1) corresponding to 64-bit elements are set:


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