Generate a program interrupt when a specific condition is true.
This instruction should only be used on 64-bit PowerPC processors running a 64-bit application.
PowerPC64 | |
---|---|
tdi | TO, RA, SIMM |
The contents of general-purpose register RA are compared with the sign-extended value of the SIMM field. If any bit in the TO field is set and its corresponding condition is met by the result of the comparison, then the system trap handler is invoked.
The TO bit conditions are defined as follows:
TO bit | ANDed with Condition |
---|---|
0 | Compares Less Than. |
1 | Compares Greater Than. |
2 | Compares Equal. |
3 | Compares Logically Less Than. |
4 | Compares Logically Greater Than. |
TO | Specifies TO bits that are ANDed with compare results. |
RA | Specifies source general-purpose register for compare. |
SIMM | 16-bit two's-complement value which will be sign-extended for comparison. |
This instruction is defined only for 64-bit implementations. Using it on a 32-bit implementation will cause the system illegal instruction error handler to be invoked.