ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

SFPENCC

T1 tenstorrent simd insn
SFPENCC (Enable or disable vector conditional execution)
SourceTenstorrent Official Tensix ISA Documentation (Wormhole & Blackhole) (tenstorrent_tt_isa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeBlackholeA0 / WormholeB0
Tenstorrent Wormhole B0 & Blackhole A0
License & VersionApache-2.0
main
Upstreamhttps://github.com/tenstorrent/tt-isa-documentation
Privilegeuser
ExtensionsTensix, Vector Unit, BlackholeA0, WormholeB0

Summary

Used to set UseLaneFlagsForLaneEnable. When UseLaneFlagsForLaneEnable is true, the per-lane LaneFlags boolean acts as a predication mask on Vector Unit (SFPU) instructions, allowing some lanes to be active whilst others are not.

Syntax / Encoding

TT_SFPENCC(/* u2 */ Imm2, 0, /* u4 */ VD, /* u4 */ Mod1)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32Tensix-32b10001010xxxxxxxxxxxxxxxxxxxxxxxx0xff000000 / 0x8a000000

Operands

NameDescription
Imm2
VD
Mod1

Reference Notes

# `SFPENCC` (Enable or disable vector conditional execution)

**Summary:** Used to set `UseLaneFlagsForLaneEnable`. When `UseLaneFlagsForLaneEnable` is `true`, the per-lane `LaneFlags` boolean acts as a predication mask on Vector Unit (SFPU) instructions, allowing some lanes to be active whilst others are not.

**Backend execution unit:** [Vector Unit (SFPU)](VectorUnit.md), simple sub-unit

## Syntax

```c
TT_SFPENCC(/* u2 */ Imm2, 0, /* u4 */ VD, /* u4 */ Mod1)
```

## Encoding

![](../../../Diagrams/Out/Bits32_SFPENCC.svg)

## Functional model

```c
if (Mod1 & 4) { // Reserved instruction modifier
  NonContractualBehavior {
    Mod1 &= ~4; // Current silicon behavior (not architecturally guaranteed)
  }
}
lanewise {
  if (VD < 12 || LaneConfig.DISABLE_BACKDOOR_LOAD) {
    if (Mod1 & SFPENCC_MOD1_EI) {
      UseLaneFlagsForLaneEnable = (Imm2 & SFPENCC_IMM2_E) != 0;
    } else if (Mod1 & SFPENCC_MOD1_EC) {
      UseLaneFlagsForLaneEnable = !UseLaneFlagsForLaneEnable;
    } else {
      // UseLaneFlagsForLaneEnable left as-is.
    }

    if (Mod1 & SFPENCC_MOD1_RI) {
      LaneFlags = (Imm2 & SFPENCC_IMM2_R) != 0;
    } else {
      LaneFlags = true;
    }
  }
}
```

Supporting definitions:
```c
#define SFPENCC_MOD1_EC 1 // Invert UseLaneFlagsForLaneEnable
#define SFPENCC_MOD1_EI 2 // Set UseLaneFlagsForLaneEnable from SFPENCC_IMM2_E
#define SFPENCC_MOD1_RI 8 // Set LaneFlags from SFPENCC_IMM2_R

#define SFPENCC_IMM2_E 1 // Immediate bit for UseLaneFlagsForLaneEnable
#define SFPENCC_IMM2_R 2 // Immediate bit for LaneFlags
```