![Xilinx Virtex-II Pro PPC405 User Manual Download Page 275](http://html1.mh-extra.com/html/xilinx/virtex-ii-pro-ppc405/virtex-ii-pro-ppc405_user-manual_3410279275.webp)
March 2002 Release
583
Virtex-II Pro™ Platform FPGA Documentation
1-800-255-7778
Alphabetical Instruction Listing
R
andi.
AND Immediate
Description
The UIMM field is extended to 32 bits by concatenating 16 0-bits on the left. The contents of
register
r
S are ANDed with the extended UIMM field and the result is loaded into register
r
A.
andi.
is one of three instructions that implicitly update CR[CR0] without having an Rc
field. The other instructions are
addic.
and
andis.
.
The
andi.
instruction can be used to test whether any of the 16 least-significant bits in a
GPR are 1-bits.
Pseudocode
(
r
A)
←
(
r
S)
∧
(
16
0
||
UIMM)
Registers Altered
•
r
A.
•
CR[CR0]
LT, GT, EQ, SO
.
Exceptions
•
None.
Compatibility
This instruction is defined by the PowerPC user instruction-set architecture (UISA). It is
implemented by all PowerPC processors.
andi.
r
A,
r
S
, UIMM
D Instruction Form
28
r
S
r
A
UIMM
0
6
1
1
1
6
3
1