A microprocessor apparatus is provided for performing a pop-compare operation.
The microprocessor apparatus includes paired operation translation logic, load
logic, and execution logic. The paired operation translation logic receives a macro
instruction that prescribes the pop-compare operation, and generates a pop-compare
micro instruction. The pop-compare micro instruction directs pipeline stages in
a microprocessor to perform the pop-compare operation. The load logic is coupled
to the paired operation translation logic. The load logic receives the pop-compare
micro instruction, and retrieves a first operand from an address in memory, where
the address is specified by contents of a register. The register is prescribed
by the pop-compare micro instruction. The execution logic is coupled to the load
logic. The execution logic receives the first operand, and compares the first operand
to a second operand.