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

REPZ/REPNZ Prefix Aliases (PAUSE, LZCNT, TZCNT)

T4 x86-64 alu insn
Backward-Compatible Prefix Overloading Quirks
SourceUndocumented x86/x86-64 Opcodes & Quirks (sandpile.org + sandsifter) (x86_sandpile_undoc)
Reliability TierT4 — Undocumented / Reverse-Engineered
ISA / Silicon ScopePre-Haswell Intel / pre-Piledriver AMD lacking ABM/BMI1
Intel, AMD, and VIA x86 / x86-64 (stepping-dependent)
License & VersionBSD-3-Clause / Public Reference
2026-snapshot
Upstreamhttps://github.com/xoreaxeaxeax/sandsifter
Privilegeuser
Note: Critical silent miscompilation hazard if CPUID.LZCNT/BMI1 is not checked.

Summary

On CPUs lacking BMI1/ABM, F3 0F BC (TZCNT) silently executes as BSF and F3 0F BD (LZCNT) silently executes as BSR — returning different values without raising #UD!

Syntax / Encoding

Opcode: F3 90 / F3 0F BD / F3 0F BC

Binary Encodings (1)

WidthFormatBit PatternMask / Match
x86-undocumented /