5.9.4
Logical instructions
This section describes the logical instructions. Next table lists the instructions described in this section.
See the RH850 product user's manual and architecture edition for details.
Table 5.34 | Logical Instructions |
|
|
or
|
Logical sum
|
ori
|
Logical sum (immediate)
|
xor
|
Exclusive OR
|
xori
|
Exclusive OR (immediate)
|
and
|
Logical product
|
andi
|
Logical product (immediate)
|
not
|
Logical negation (takes 1's complement)
|
shr
|
Logical right shift
|
sar
|
Arithmetic right shift
|
shl
|
Logical left shift
|
sxb
|
Sign extension of byte data
|
sxh
|
Sign extension of 2-byte data
|
zxb
|
Zero extension of byte data
|
zxh
|
Zero extension of 2-byte data
|
bsh
|
Byte swap of half-word data
|
bsw
|
Byte swap of word data
|
hsh
|
Half-word swap of half-word data
|
hsw
|
Half-word swap of word data
|
tst
|
Test
|
sch0l
|
Bit (0) search from MSB side
|
sch0r
|
Bit (0) search from LSB side
|
sch1l
|
Bit (1) search from MSB side
|
sch1r
|
Bit (1) search from LSB side
|