pto.pge_b32¶
pto.pge_b32 is part of the Predicate Generation And Algebra instruction set.
Summary¶
Construct a 32-bit predicate mask from a documented Pat* token.
Mechanism¶
The installed 3510 Bisheng CCE header exposes pge_b32 as a pattern-token helper, not as a runtime scalar-threshold compare. The public call surface is vector_bool pge_b32(T dist) where T is one of the documented __cce_simd::Pat* marker types.
This page therefore models pto.pge_b32 as pattern-based predicate materialization: the chosen token determines which lanes are active in the returned predicate register.
Syntax¶
PTO Assembly Form¶
%mask = pto.pge_b32 "PAT_VL16" : !pto.mask<b32>
AS Level 1 (SSA)¶
%mask = pto.pge_b32 "PAT_VL16" : !pto.mask<b32>
AS Level 2 (DPS)¶
pto.pge_b32 "PAT_VL16" outs(%mask : !pto.mask<b32>)
C++ Intrinsic¶
vector_bool mask = pge_b32(__cce_simd::PAT_VL16);
Inputs¶
| Operand | Type | Description |
|---|---|---|
"PAT_*" |
string attribute | Predicate-pattern token such as PAT_ALL, PAT_ALLF, PAT_VL*, PAT_M3, PAT_M4, PAT_H, or PAT_Q |
Expected Outputs¶
| Result | Type | Description |
|---|---|---|
%mask |
!pto.mask<b32> |
32-bit predicate generated from the selected pattern token |
Side Effects¶
None.
Constraints¶
Constraints
- The installed public CCE API accepts documented
Pat*marker types only; there is no public runtime-scalar overload forpge_b32in the shipped 3510 header. - Programs must use a pattern token that is valid for the selected target profile.
- This operation materializes a predicate register only; it does not update any scalar input in place.
Exceptions¶
Exceptions
- Illegal if the pattern token is not supported by the selected target profile.
- Illegal if the result is consumed in a predicate-width context that the selected backend does not support.
Target-Profile Restrictions¶
Target-Profile Restrictions
| Aspect | CPU Sim | A2/A3 | A5 |
|---|---|---|---|
| Pattern-token predicate generation | Simulated | Supported | Supported |
| Public CCE surface | Emulated | Supported | Supported |
Examples¶
C++ usage¶
vector_bool mask = pge_b32(__cce_simd::PAT_VL16);
SSA form¶
%mask = pto.pge_b32 "PAT_VL16" : !pto.mask<b32>
Related Ops / Instruction Set Links¶
- Instruction set overview: Predicate Generation And Algebra
- Previous op in instruction set: pto.pge_b16
- Next op in instruction set: pto.plt_b8
- Control-shell overview: Control and configuration