ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

S_XOR_SAVEEXEC_B32

T1 amd-gpu bitmanip insn
AMD GPU S_XOR_SAVEEXEC_B32 (ENC_SOP1, SOP1_INST_LITERAL)
SourceAMD Official Machine-Readable GPU ISA XMLs (RDNA & CDNA) (amd_gpu_isa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeCDNA5, RDNA1, RDNA2, RDNA3, RDNA3_5, RDNA4
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
ExtensionsCDNA5, RDNA1, RDNA2, RDNA3, RDNA3_5, RDNA4, SALU

Summary

Calculate bitwise XOR on the scalar input and the EXEC mask, store the calculated result into the EXEC mask, set SCC iff the calculated result is nonzero and store the original value of the EXEC mask into the scalar destination register.

Syntax / Encoding

S_XOR_SAVEEXEC_B32 SDST, SSRC0, LITERAL, LITERAL64 | ENC_SOP1 op=36 [CDNA5,RDNA3,RDNA3_5,RDNA4]; SOP1_INST_LITERAL op=36 [CDNA5,RDNA3,RDNA3_5,RDNA4]; SOP1_INST_LITERAL64 op=36 [CDNA5]

Binary Encodings (5)

WidthFormatBit PatternMask / Match
32ENC_SOP1101111101xxxxxxx00100100xxxxxxxx0xff80ff00 / 0xbe802400
64SOP1_INST_LITERALxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx00100100xxxxxxxx0x00000000ff80ff00 / 0x00000000be802400
96SOP1_INST_LITERAL64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx00100100xxxxxxxx0x0000000000000000ff80ff00 / 0x0000000000000000be802400
32ENC_SOP1101111101xxxxxxx00111110xxxxxxxx0xff80ff00 / 0xbe803e00
64SOP1_INST_LITERALxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx101111101xxxxxxx00111110xxxxxxxx0x00000000ff80ff00 / 0x00000000be803e00

Operands

NameDescription
SDST
SSRC0
LITERAL
LITERAL64