XORs the upper 16 bits of a general-purpose register with a 16-bit unsigned integer and places the result in another general-purpose register.
PowerPC | |
---|---|
xoris | RA,RS,UI |
POWER | |
---|---|
xoriu | RA,RS,UI |
The xoris and xoriu instructions XOR the contents of general-purpose register (GPR) RS with the concatenation of a 16-bit unsigned integer UI and 0x'0000' and store the result in GPR RA.
The xoris and xoriu instructions have only one syntax form and do not affect the Fixed-Point Exception Register or Condition Register Field 0.
RA | Specifies target general-purpose register where result of operation is stored. |
RS | Specifies source general-purpose register for operation. |
UI | Specifies 16-bit unsigned integer for operation. |
The following code XORs GPR 4 with 0x0079 0000 and stores the result in GPR 6:
# Assume GPR 4 holds 0x9000 3000. xoris 6,4,0x0079 # GPR 6 now holds 0x9079 3000.
Fixed-Point Logical Instructions.