C.OR

Compressed OR

C.OR rd', rs2'

Bitwise OR of two registers.

Details

Computes the bitwise OR of rd′ and rs2′, writing to rd′.

Pseudocode Operation

R[rd'] = R[rd'] | R[rs2'];

Example

C.OR x8, x9

Encoding

Binary Layout
100011
15:10
rd'
9:7
10
6:5
rs2'
4:2
01
1:0
 
Format CA
Opcode 01
Extension C

Operands

  • rd'
    Dest/Src1
  • rs2'
    Source register 2 (3-bit compressed)