Instructions with the same op code, mnemonic, and function
The instructions are available in POWER® family and PowerPC®. These instructions share the same op code and mnemonic, and have the same function in a POWER® family and PowerPC®.
The following instructions are available in POWER® family and PowerPC®. These instructions share the same op code and mnemonic, and have the same function in POWER® family and PowerPC®, but use different input operand formats.
- cmp
- cmpi
- cmpli
- cmpl
The input operand format for POWER® family is:
BF, RA, SI | RB | UI
The input operand format for PowerPC® is:
BF, L, RA, SI | RB | UI
The assembler handles these as the same instructions in POWER® family and PowerPC®, but with different input operand formats. The L operand is one bit. For POWER® family, the assembler presets this bit to 0. For 32-bit PowerPC® platforms, this bit must be set to 0, or an invalid instruction form results.