Simplified Mnemonics for PowerPC Instructions
PowerPC e500 Core Family Reference Manual, Rev. 1
Freescale Semiconductor
C-21
Examples using the CR logical mnemonics follow:
1. Set CR[57].
crset 25
equivalent to
creqv 25,25,25
2. Clear CR0[SO].
crclr so
equivalent to
crxor 3,3,3
3. Same as (2), but clear CR3[SO].
crclr 4 * cr3 + so
equivalent to
crxor 15,15,15
4. Invert the CR0[EQ].
crnot eq,eq
equivalent to
crnor 2,2,2
5. Same as (4), but CR4[EQ] is inverted and the result is placed into CR5[EQ].
crnot 4 * cr5 + eq, 4 * cr4 + eq
equivalent to
crnor 22,18,18
C.7
Trap Instructions Simplified Mnemonics
The codes in
Table C-25
have been adopted for the most common combinations of trap conditions.
Table C-25. Standard Codes for Trap Instructions
Code
Description
TO Encoding
<
>
=
<U
1
1
The symbol ‘<U’ indicates an unsigned less-than evaluation is performed.
>U
2
2
The symbol ‘>U’ indicates an unsigned greater-than evaluation is performed.
lt
Less than
16
1
0
0
0
0
le
Less than or equal
20
1
0
1
0
0
eq
Equal
4
0
0
1
0
0
ge
Greater than or equal
12
0
1
1
0
0
gt
Greater than
8
0
1
0
0
0
nl
Not less than
12
0
1
1
0
0
ne
Not equal
24
1
1
0
0
0
ng
Not greater than
20
1
0
1
0
0
llt
Logically less than
2
0
0
0
1
0
lle
Logically less than or equal
6
0
0
1
1
0
lge
Logically greater than or equal
5
0
0
1
0
1
lgt
Logically greater than
1
0
0
0
0
1
lnl
Logically not less than
5
0
0
1
0
1
lng
Logically not greater than
6
0
0
1
1
0
—
Unconditional
31
1
1
1
1
1
Summary of Contents for PowerPC e500 Core
Page 1: ...PowerPC e500 Core Family Reference Manual Supports e500v1 e500v2 E500CORERM Rev 1 4 2005...
Page 36: ...PowerPC e500 Core Family Reference Manual Rev 1 xxxvi Freescale Semiconductor...
Page 38: ...PowerPC e500 Core Family Reference Manual Rev 1 Part I 2 Freescale Semiconductor...
Page 332: ...PowerPC e500 Core Family Reference Manual Rev 1 Part II 2 Freescale Semiconductor...
Page 530: ...Opcode Listings PowerPC e500 Core Family Reference Manual Rev 1 D 50 Freescale Semiconductor...
Page 534: ...PowerPC e500 Core Family Reference Manual Rev 1 E 4 Freescale Semiconductor Revision History...