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
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...