The extended mnemonics for fixed-point trap instructions incorporate the most useful TO operand values. A standard set of codes, shown in the following table, has been adopted for the most common combinations of trap conditions. These extended mnemonics are in the com assembly mode.
| Fixed-Point Trap Instruction Codes | ||
| Code | TO Encoding | Meaning |
| lt | 10000 | less than |
| le | 10100 | less than or equal |
| ng | 10100 | not greater than |
| eq | 00100 | equal |
| ge | 01100 | greater than or equal |
| nl | 01100 | not less than |
| gt | 01000 | greater than |
| ne | 11000 | not equal |
| llt | 00010 | logically less than |
| lle | 00110 | logically less than or equal |
| lng | 00110 | logically not greater than |
| lge | 00101 | logically greater than or equal |
| lnl | 00101 | logically not less than |
| lgt | 00001 | logically greater than |
| lne | 00011 | logically not equal |
| None | 11111 | Unconditional |
The POWER extended mnemonics for fixed-point trap instructions have the following format:
where xx is one of the codes specified in the preceding table.
The 64-bit PowerPC extended mnemonics for double-word, fixed-point trap instructions have the following format:
The PowerPC extended mnemonics for fixed-point trap instructions have the following formats:
where xx is one of the codes specified in the preceding table.
The trap instruction is an unconditional trap:
tlt 10, 20This is equivalent to:
t 16, 10, 20
teqi 4, 0x10This is equivalent to:
ti 0x4, 4, 0x10
trapThis is equivalent to:
tw 31, 0, 0
twnei RX. RYThis is equivalent to:
twi 24, RX, RY
twlgti RX, 0x7FFThis is equivalent to:
twi 1, RX, 0x7FF
Extended Instruction Mnemonics Overview.
Extended Mnemonics of Branch Instructions.
Extended Mnemonics of Condition Register Logical Instructions.
Extended Mnemonics of Fixed-Point Arithmetic Instructions.
Extended Mnemonics of Fixed-Point Compare Instructions.
Extended Mnemonics of Fixed-Point Load Instructions.
Extended Mnemonics of Fixed-Point Logical Instructions.
Extended Mnemonics of Moving from or to Special-Purpose Registers.
Extended Mnemonics of Fixed-Point Rotate and Shift Instructions.
The tw or t (Trap Word) instruction, twi or ti (Trap Word Immediate) instruction.