or.

OR Record

or. RT,RA,RB

Performs a bitwise OR operation on the contents of two registers and updates the condition register.

Details

For or., the bitwise OR of the contents of register RA and RB is placed into register RT.

Pseudocode Operation

if 'or.' then
    RT <- (RA) OR (RB)

Programming Note

The or. instruction performs a bitwise OR operation between two registers, storing the result in another register. This instruction does not require any special alignment and can be executed at any privilege level. It is commonly used for combining flags or setting specific bits in a register.

Example

or. r3, r4, r5

Encoding

Binary Layout
18
0
LI
6
AA
30
LK
31
 
Format X-form
Opcode 0x7C000379
Extension Base
Registers Altered CR0, XER

Operands

  • RT
    Target General Purpose Register
  • RA
    Source General Purpose Register
  • RB
    Source General Purpose Register