binutils Newspaper
NOVEMBER 30, 2026
opcodes — Proposed

opcodes: microblaze: remove pcmpbc

Removes the 'pcmpbc' instruction from MicroBlaze opcode tables as it is not defined in documentation and not used by tools.

This patch removes the ‘pcmpbc’ instruction from the MicroBlaze opcode table because it is not documented in any official manuals (UG984, UG081), is not recognized by QEMU’s decoder, and is not emitted by GCC. Its removal ensures the opcode table accurately reflects supported instructions, preventing unknown opcodes from being misinterpreted as valid instructions.

In the Thread 1 participant
  1. Samuel Price proposer

    Proposes removing the undocumented and unused 'pcmpbc' MicroBlaze instruction from the opcode table.

    “pcmpbc (0x84000400) is in the opcode table, but no MicroBlaze manual defines it. UG984 and the older UG081 list three pattern compare instructions, pcmpbf, pcmpeq and pcmpne, and both define the low 11 bits of and as zero, so the word is not a valid and either. QEMU's decoder has no pattern for it, and GCC never emits it.”

In Details

This change removes an undocumented instruction, 'pcmpbc', from the MicroBlaze opcode definition files (opcodes/microblaze-opc.h and opcodes/microblaze-opcm.h). The instruction appears to be an artifact, as it's not present in the architecture's programming manuals, not recognized by emulators like QEMU, nor generated by compilers. Its removal cleans up the opcode table, ensuring that unrecognized patterns are handled as unknown data (e.g., '.long') rather than being misinterpreted as a non-existent instruction.

For Context
opcodes
The part of a machine language instruction that specifies the operation to be performed.
MicroBlaze
A soft processor core from Xilinx, designed to be implemented in FPGAs. It has a RISC-like architecture.
UG984
A specific user guide or technical reference manual for the MicroBlaze processor.
QEMU
A popular open-source machine emulator and virtualizer that can emulate various hardware architectures, including MicroBlaze.
Filed Under: microblazeopcodesdocumentationcleanup