Cmpi; Table 9-12. Extended Mnemonics For Cmpi - IBM PPC440X5 CPU Core User Manual

Cpu core
Table of Contents

Advertisement

Preliminary

cmpi

Compare Immediate
cmpi
BF, 0, RA, IM
11
0
6
4
c
0
0:3
if (RA) < EXTS(IM) then c
if (RA) > EXTS(IM) then c
if (RA) = EXTS(IM) then c
c
XER[SO]
3
n
BF
CR[CRn]
c
0:3
The IM field is sign-extended to 32 bits. The contents of register RA are compared with the extended IM field,
using a 32-bit signed compare.
The CR field specified by the BF field is updated to reflect the results of the compare and the value of
XER[SO] is placed into the same CR field.
Registers Altered
n ] where n is specified by the BF field
• CR[CR
Invalid Instruction Forms
• Reserved fields
Programming Note
PowerPC Book-E Architecture defines this instruction as cmpi BF,L,RA,IM, where L selects operand size for
64-bit implementations. For all 32-bit implementations, L = 0 is required (L = 1 is an invalid form); hence for
the PPC440x5 core, use of the extended mnemonic cmpwi BF,RA,IM is recommended.

Table 9-12. Extended Mnemonics for cmpi

Mnemonic
Operands
cmpwi
[BF,] RA, IM
instrset.fm.
September 12, 2002
BF
RA
9
11
1
0
1
1
1
2
Compare Word Immediate.
Use CR0 if BF is omitted.
Extended mnemonic for
cmpi BF,0,RA,IM
PPC440x5 CPU Core User's Manual
16
Function
cmpi
Compare Immediate
IM
Other Registers
Altered
Page 283 of 589
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents