tabortwc
Transaction Abort Word Conditional
tabortwc TO, RA, RB
Aborts a transaction if the condition is met (Word comparison).
Encoding
Binary Layout
31
0:5
TO
6:10
RA
11:15
RB
16:20
782
21:30
1
31
Operands
-
TO
Options -
RA
Src A -
RB
Src B
Example
tabortwc 4, r4, r5
Registers Altered
CR, CR0, CR1, CR6, MSR, TARRelated
More in Transactional Memory
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
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.
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.