EasyManua.ls Logo

Freescale Semiconductor PowerPC e500 Core - Trap Instructions Simplified Mnemonics

Default Icon
548 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
ltLess than 16 10000
le Less than or equal 20 10100
eqEqual 4 00100
ge Greater than or equal 12 01100
gtGreater than 8 01000
nlNot less than 12 01100
ne Not equal 24 11000
ngNot greater than 20 10100
lltLogically less than 2 00010
lle Logically less than or equal 6 00110
lge Logically greater than or equal 5 00101
lgtLogically greater than 1 00001
lnlLogically not less than 5 00101
lngLogically not greater than 6 00110
Unconditional 31 11111

Table of Contents

Related product manuals