The X86 Opcode Mnemonic Generator

| tags: asm code

Have you ever wondered how Intel comes up with such high-quality mnemonics as VPBROADCASTMB2Q, VPCLMULHQLQDQ, and many more besides? Well, wonder no more! Here is an entirely automatic generator for you to make as many new opcodes as you please.

Disclaimers: Some generated opcodes may actually already exist. JavaScript is required. Cross-browser compatibility is not assured.

The Generator

CL
PALIGNW
J
HG
PFMSUW
CPUSHA11PS
FSUW
HSUW
TF32X4
PABSD2USIP
MINUB
IRSSISUW
CI
FQH
PSHLDTSCATHERQD
PI2PI

Technical Details

The opcodes are generated by sampling from a fourth-order character ngram model, trained on the entire list of Intel opcodes as extracted from a recent (as of today) NASM daily snapshot, using the SRILM toolkit. The "reverse context tree" model format is co-opted from fungot. See the source for more details.