EasyManua.ls Logo

Freescale Semiconductor PowerPC e500 Core - Page 466

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...
PowerPC e500 Core Family Reference Manual, Rev. 1
C-22 Freescale Semiconductor
Simplified Mnemonics for PowerPC Instructions
The mnemonics in Table C-26 are variations of trap instructions, with the most useful TO values
represented in the mnemonic rather than specified as a numeric operand.
The following examples use the trap mnemonics shown in Table C-26:
1. Trap if rA is not zero.
twnei rA,0 equivalent to twi 24,rA,0
2. Trap if rA is not equal to rB.
twne rA, rB equivalent to tw 24,rA,rB
3. Trap if rA is logically greater than 0x7FF.
twlgti rA, 0x7FF equivalent to twi 1,rA, 0x7FF
4. Trap unconditionally.
trap equivalent to tw 31,0,0
Trap instructions evaluate a trap condition as follows: The contents of rA are compared with either
the sign-extended SIMM field or the contents of rB, depending on the trap instruction.
Table C-26. Trap Simplified Mnemonics
Trap Semantics
32-Bit Comparison
twi Immediate tw Register
Trap unconditionally —trap
Trap if less than twlti twlt
Trap if less than or equal twlei twle
Trap if equal tweqi tweq
Trap if greater than or equal twgei twge
Trap if greater than twgti twgt
Trap if not less than twnli twnl
Trap if not equal twnei twne
Trap if not greater than twngi twng
Trap if logically less than twllti twllt
Trap if logically less than or equal twllei twlle
Trap if logically greater than or equal twlgei twlge
Trap if logically greater than twlgti twlgt
Trap if logically not less than twlnli twlnl
Trap if logically not greater than twlngi twlng

Table of Contents

Related product manuals