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

S_FF1_I32_B64

T1 amd-gpu alu insn
AMD GPU S_FF1_I32_B64 (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_B64 SDST, SSRC0, LITERAL | ENC_SOP1 op=17 [CDNA1,CDNA2,CDNA3,CDNA4]; SOP1_INST_LITERAL op=17 [CDNA1,CDNA2,CDNA3,CDNA4]; ENC_SOP1 op=20 [RDNA1,RDNA2]

Binary Encodings (4)

WidthFormatBit PatternMask / Match
32ENC_SOP1101111101xxxxxxx00010001xxxxxxxx0xff80ff00 / 0xbe801100
64SOP1_INST_LITERALxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx00010001xxxxxxxx0x00000000ff80ff00 / 0x00000000be801100
32ENC_SOP1101111101xxxxxxx00010100xxxxxxxx0xff80ff00 / 0xbe801400
64SOP1_INST_LITERALxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx00010100xxxxxxxx0x00000000ff80ff00 / 0x00000000be801400

Operands

NameDescription
SDST
SSRC0
LITERAL