Extensions
Forms
4 (4 XOP)
Data
Intel XED v2026.08.23

Forms

Every encoding of T1MSKC that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
T1MSKC r32, m32 not in 64-bit mode T1MSKC_GPR32d_MEMdXOP.LZ.NP.09.WIG 01 /7TBM
T1MSKC r32/64, m32/64 64-bit mode only T1MSKC_GPRyy_MEMyXOP.LZ.NP.09.WIG 01 /7TBM
T1MSKC r32, r32 not in 64-bit mode T1MSKC_GPR32d_GPR32dXOP.LZ.NP.09.WIG 01 /7TBM
T1MSKC r32/64, r32/64 64-bit mode only T1MSKC_GPRyy_GPRyyXOP.LZ.NP.09.WIG 01 /7TBM

Latency and throughput

What the scheduling models of LLVM 23.1.2 give for each form, not measurements: latency / reciprocal throughput in cycles, the ports under them. A row is a model, or models that agree; a dash, a form that its processors lack. Memory forms: latency from the address, ports without the load and store units. Which processors each model covers.
Modelr32/64, m32/64r32/64, r32/64
Piledriver6 / 1.5EX0 EX12 / 1EX0 EX1
Zen5 / 0.5ALU0 ALU1 ALU2 ALU31 / 0.25ALU0 ALU1 ALU2 ALU3
Zen 25 / 0.33ALU0 ALU1 ALU2 ALU31 / 0.25ALU0 ALU1 ALU2 ALU3

Operation

What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.

features = cpuid_leaf(0x80000001, 0)[2]
if not features >> 21 & 1:
    fault(UD)                    # CPUID: no TBM
s = src.read()
t = s + 1
r = low(~s | t)                  # zeros for the trailing 1 bits, ones
                                 # above them
cf = t >> OSIZE                  # 1 when src is all ones
sf = msb(r)
zf = r == 0
of = 0
af = pf = UNDEFINED
dest.write(r)                    # a 32-bit register: bits 63:32 cleared

Run on AMD Zen 5 (EPYC 9645): 4 cases. Its cases ran where CPUID reported no TBM, and every one raised an exception. The forms that 64-bit mode lacks were not run: the probe runs in 64-bit mode.

Operands

What each form reads and writes, as Intel XED records it: the operands of its syntax, in order, and the implicit ones that the syntax does not name. How to read.
OperandKindAction
T1MSKC r32, r/m32 not in 64-bit mode T1MSKC r32/64, r/m32/64 64-bit mode only
r32/64explicitwrite
r/m32/64explicitread
RFLAGSimplicitwrite

Flags

M modified, 0 cleared, U undefined; blank: not affected. How to read.
OFSFZFAFPFCF
All forms
0MMUUM

Intrinsics

The C intrinsics of Clang 23.1.2 that compile to T1MSKC, each with the form it compiles to and the Clang options it needs. The forms come from compiling every intrinsic and decoding the result with Intel XED; all intrinsics A–Z explains the method.

IntrinsicCompiles to
__t1mskc_u32 unsigned int __t1mskc_u32(unsigned int __a)

T1MSKC r32/64, r32/64 XOP.LZ -mtbm

__t1mskc_u64 unsigned long long __t1mskc_u64(unsigned long long __a)

T1MSKC r32/64, r32/64 XOP.LZ -mtbm

CPUID and processors

Each form belongs to an XED ISA set. A form can be used when the processor reports every CPUID bit of one of its ISA set's alternatives.

CPUID requirements and processors of the XED ISA sets above. Alternatives are separated by “or”; processors follow XED’s chip model, whose AMD processors end with Zen 2, and the CPU data of this site for Zen 3 to Zen 6.
ISA setCPUIDProcessors
TBM

TBM
CPUID.80000001H:ECX[21] TBM

Piledriver, Zen, Zen+, Zen 2

Note: XED's Zen chips inherit TBM from its Piledriver chip; GCC's -march=znver1 and later do not enable TBM.

More TBM instructions

Sources

  1. Intel XED v2026.08.23 (commit 0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model.
  2. Clang's x86 intrinsic headers, LLVM 23.1.2 (commit 85ac56026243): the intrinsics, their signatures and doc comments, and the Clang of that release, which compiled each of them.
  3. LLVM 23.1.2's x86 scheduling models (commit 85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them.
  4. AMD64 Architecture Programmer's Manual, Volume 3: General-Purpose and System Instructions (24594, rev. 3.38, July 2026)

The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The intrinsics and their signatures come from Clang and the timings from LLVM's scheduling models, both part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.