tabortwc
Transaction Abort Word Conditional
tabortwc TO, RA, RB
Aborts a transaction if the condition is met (Word comparison).
Details
Transaction Abort Word Conditional. Aborts the current transaction if the condition formed by TO and the comparison of RA and RB is true. Records the abort cause in TEXASR.
Pseudocode Operation
if Transactional() then
if TO_condition(TO, RA, RB) then
Abort_Transaction(cause=Explicit)
Programming Note
Use tabortwc to conditionally abort a transaction based on a comparison between two registers. Ensure that the transaction is active when using this instruction; otherwise, it will have no effect. The TO field specifies the type of comparison (e.g., equal, less than). Be cautious with the privilege level and ensure the MSR[TS] bit is set to enable transactions.
Example
tabortwc 4, r4, r5
Encoding
Binary Layout
31
0
TO
6
RA
11
RB
16
782
21
1
31
Operands
-
TO
Options -
RA
Src A -
RB
Src B