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

S_FF1_I32_B32

T1 amd-gpu alu insn
AMD GPU S_FF1_I32_B32 (ENC_SOP1, SOP1_INST_LITERAL)
SourceAMD Official Machine-Readable GPU ISA XMLs (RDNA & CDNA) (amd_gpu_isa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeCDNA1, CDNA2, CDNA3, CDNA4, RDNA1, RDNA2
AMD RDNA1/2/3/3.5/4 & CDNA1/2/3/4 GPUs
License & VersionAMD GPUOpen / MIT (isa_spec_manager)
2026-official
Upstreamhttps://gpuopen.com/machine-readable-isa/
Privilegeuser
ExtensionsCDNA1, CDNA2, CDNA3, CDNA4, RDNA1, RDNA2, SALU

Summary

Count the number of trailing "0" bits before the first "1" in a scalar input and store the result into a scalar register. Store -1 if there are no "1" bits in the input.

Syntax / Encoding

S_FF1_I32_B32 SDST, SSRC0, LITERAL | ENC_SOP1 op=16 [CDNA1,CDNA2,CDNA3,CDNA4]; SOP1_INST_LITERAL op=16 [CDNA1,CDNA2,CDNA3,CDNA4]; ENC_SOP1 op=19 [RDNA1,RDNA2]

Binary Encodings (4)

WidthFormatBit PatternMask / Match
32ENC_SOP1101111101xxxxxxx00010000xxxxxxxx0xff80ff00 / 0xbe801000
64SOP1_INST_LITERALxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx00010000xxxxxxxx0x00000000ff80ff00 / 0x00000000be801000
32ENC_SOP1101111101xxxxxxx00010011xxxxxxxx0xff80ff00 / 0xbe801300
64SOP1_INST_LITERALxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx00010011xxxxxxxx0x00000000ff80ff00 / 0x00000000be801300

Operands

NameDescription
SDST
SSRC0
LITERAL