ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

vISA SUBROUTINE

T1 intel-gpu simd insn
Intel GPU vISA Instruction: SUBROUTINE
SourceIntel Graphics Compiler Official Virtual ISA (vISA) Specification (intel_gpu_visa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeIntel Gen8–Xe2 vISA
Intel Gen9–Gen12 / Xe-LP / Xe-HPG / Xe-HPC / Xe2
License & VersionMIT
master
Upstreamhttps://github.com/intel/intel-graphics-compiler/tree/master/documentation/visa
Privilegeuser
ExtensionsBDW, SKL, BXT, ICLLP, TGLLP

Summary

Intel GPU vISA SUBROUTINE instruction.

Syntax / Encoding

SUBROUTINE <label>

Binary Encodings (1)

WidthFormatBit PatternMask / Match
Intel-vISA /

Operands

NameDescription
LabelIndex of the label variable for the subroutine. It must be a subroutine label

Reference Notes

## Opcode

  SUBROUTINE = 0x30

## Format

| | |
| --- | --- |
| 0x30(SUBROUTINE) | Label |


## Semantics


```

                    Declare a subroutine.
```

## Description





```
    Marks a new subroutine starting at <label>.

    The instruction itself is a nop. Label marks the start of the subroutine, and may be used as the target of a CALL instruction.
```


- **Label(uw):** Index of the label variable for the subroutine.  It must be a subroutine label


#### Properties




## Text
```



    SUBROUTINE <label>
```
## Notes





    There is no instruction to mark the end of a subroutine; a subroutine ends when we reach another SUBROUTINE  instruction or the end of file.