The present application describes a method and a system for executing
instructions while reducing the logic required for execution in a
processor. Instructions (e.g., atomic, integer-multiply, integer-divide,
move on integer registers, graphics, floating point calculations or the
like) are expanded into helper instructions before execution (e.g., in
the integer, floating point, graphics and memory units or the like). Such
instructions are treated as complex instructions. The functionality of a
complex instruction is shared among multiple helpers so that by executing
the helpers representing the complex instruction, the functionality of
complex instruction is achieved. The expansion of complex instructions
into helper instructions reduces the amount of hardware and complexity
involved in supporting these individual complex instructions in various
units in the processor.