
584
March 2002 Release
1-800-255-7778
Virtex-II Pro™ Platform FPGA Documentation
Chapter 11:
Instruction Set
R
andis.
AND Immediate Shifted
Description
The UIMM field is extended to 32 bits by concatenating 16 0-bits on the right. The contents
of register
r
S are ANDed with the extended UIMM field and the result is loaded into
register
r
A.
andis.
is one of three instructions that implicitly update CR[CR0] without having an Rc
field. The other instructions are
addic.
and
andi.
.
The
andis.
instruction can be used to test whether any of the 16 most-significant bits in a
GPR are 1-bits.
Pseudocode
(
r
A)
←
(
r
S)
∧
(UIMM
||
16
0)
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.
andis.
r
A,
r
S
, UIMM
D Instruction Form
29
r
S
r
A
UIMM
0
6
1
1
1
6
3
1