AMCC Proprietary 381
Revision 1.02 - September 10, 2007
PPC405 Processor
Preliminary User’s Manual
nmaclhw
RT, RA, RB nprod
0:31
← –((RA)
16:31
x (RB)
16:31
) signed
temp
0:32
← nprod
0:31
+ (RT)
if ((nprod
0
= RT
0
) ∧ (RT
0
≠ temp
1
)) then (RT) ← (RT
0
||
31
(¬RT
0
))
else (RT)
← temp
1:32
290
nmaclhw.
CR[CR0]
nmaclhwo
XER[SO, OV]
nmaclhwo.
CR[CR0]
XER[SO, OV]
nmachlws
RT, RA, RB nprod
0:31
← –((RA)
0:15
x (RB)
0:15
) signed
temp
0:32
← nprod
0:31
+ (RT)
if ((nprod
0
= RT
0
) ∧ (RT
0
≠ temp
1
)) then (RT) ← (RT
0
||
31
(¬RT
0
))
else (RT)
← temp
1:32
291
nmachlws.
CR[CR0]
nmachlwso
XER[SO, OV]
nmachlwso.
CR[CR0]
XER[SO, OV]
nop Preferred no-op, triggers optimizations based on no-ops.
Extended mnemonic for
ori 0,0,0
295
nor RA, RS, RB NOR (RS) with (RB).
Place result in RA.
292
nor. CR[CR0]
not RA, RS Complement register.
(RA)
←¬(RS)
Extended mnemonic for
nor RA,RS,RS
292
not. Extended mnemonic for
nor. RA,RS,RS
CR[CR0]
or RA, RS, RB OR (RS) with (RB).
Place result in RA.
293
or. CR[CR0]
orc RA, RS, RB OR (RS) with ¬(RB).
Place result in RA.
294
orc. CR[CR0]
ori RA, RS, IM OR (RS) with (
16
0 || IM).
Place result in RA.
295
oris RA, RS, IM OR (RS) with (IM ||
16
0).
Place result in RA.
296
rfci Return from critical interrupt
(PC) ← (SRR2).
(MSR) ← (SRR3).
297
rfi Return from interrupt.
(PC) ← (SRR0).
(MSR)
← (SRR1).
298
rlwimi RA, RS, SH, MB,
ME
Rotate left word immediate, then insert according to mask.
r
← ROTL((RS), SH)
m
← MASK(MB, ME)
(RA)
← (r ∧ m) ∨ ((RA) ∧¬m)
299
rlwimi. CR[CR0]
rlwinm RA, RS, SH, MB,
ME
Rotate left word immediate, then AND with mask.
r
← ROTL((RS), SH)
m
← MASK(MB, ME)
(RA) ← (r ∧ m)
300
rlwinm. CR[CR0]
rlwnm RA, RS, RB, MB,
ME
Rotate left word, then AND with mask.
r ← ROTL((RS), (RB)
27:31
)
m
← MASK(MB, ME)
(RA)
← (r ∧ m)
302
rlwnm. CR[CR0]
rotlw RA, RS, RB Rotate left.
(RA)
← ROTL((RS), (RB)
27:31
)
Extended mnemonic for
rlwnm RA,RS,RB,0,31
302
rotlw. Extended mnemonic for
rlwnm. RA,RS,RB,0,31
CR[CR0]
Table A-1. PPC405 Instruction Syntax Summary (Continued)
Mnemonic Operands Function Other Registers Changed Page