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

SFPPUSHC

T1 tenstorrent simd insn
SFPPUSHC (Push onto vector conditional execution stack)
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

Pushes a copy of the current lane predication masks (per-lane LaneFlags and UseLaneFlagsForLaneEnable) onto the vector conditional execution stack. The stack has a maximum capacity of eight elements, and this instruction must not be used if the stack is already full (what current hardware then does is a NonContractualBehavior; see the flag stack).

Syntax / Encoding

TT_SFPPUSHC(0, 0, /* u4 */ VD, 0)

Binary Encodings (2)

WidthFormatBit PatternMask / Match
32Tensix-32b10000111xxxxxxxxxxxxxxxxxxxxxxxx0xff000000 / 0x87000000
32Tensix-32b (Blackhole)10000111xxxxxxxxxxxxxxxxxxxxxxxx0xff000000 / 0x87000000

Operands

NameDescription
VD

Reference Notes

# `SFPPUSHC` (Push onto vector conditional execution stack)

**Summary:** Pushes a copy of the current lane predication masks (per-lane `LaneFlags` and `UseLaneFlagsForLaneEnable`) onto the vector conditional execution stack. The stack has a maximum capacity of eight elements, and this instruction must not be used if the stack is already full (what current hardware then does is a `NonContractualBehavior`; see [the flag stack](VectorUnit.md#lane-predication-masks)).

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

## Syntax

```c
TT_SFPPUSHC(0, 0, /* u4 */ VD, 0)
```

## Encoding

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

## Functional model

```c
lanewise {
  if (VD < 12 || LaneConfig.DISABLE_BACKDOOR_LOAD) {
    if (Mod1 != 0) { // Reserved instruction modifiers
      NonContractualBehavior {
        // Current silicon behavior (not architecturally guaranteed): nothing is pushed and
        // FlagStack.Size() is unchanged, but the entry at index FlagStack.Size() % 8 is
        // overwritten (the bottom entry if the stack is full; otherwise an entry above the top,
        // which nothing reads before a push overwrites it again), and Mod1 == 13 also does
        // LaneFlags = !LaneFlags.
      }
    } else {
      if (FlagStack.Size() >= 8) {
        // Software should avoid using SFPPUSHC when the stack is full.
        NonContractualBehavior {
          // The push below overwrites entry Size() % 8 and leaves Size() above 8.
        }
      }
      FlagStack.Push({LaneFlags, UseLaneFlagsForLaneEnable});
    }
  }
}
```