tabortwci

Transaction Abort Word Conditional Immediate

tabortwci TO, RA, SI

Aborts transaction if word condition (Immediate) is met.

Encoding

Binary Layout
31
0:5
TO
6:10
RA
11:15
SI
16:20
846
21:30
1
31
 
Format X-form
Opcode 0x7C00069D

Operands

  • TO
    Options
  • RA
    Src
  • SI
    Immediate

Example

tabortwci 4, r4, 16

Registers Altered

CR, MSR

Related

More in Transactional Memory

Reference

Not in Power ISA v3.1C

Description

Not in Power ISA v3.1C: Transactional Memory has been removed from the architecture (Appendix A), and its opcode map lists this opcode as reserved. The encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. Transaction Abort Word Conditional Immediate. Aborts the current transaction if the condition formed by TO and the comparison of RA with the sign-extended immediate SI is true.

Operation

if Transactional() then
  if TO_condition(TO, RA, EXTS(SI)) then
    Abort_Transaction(cause=Explicit)

Programming Note

Use tabortwci to conditionally abort a transaction based on the comparison of a register with an immediate value. Ensure that the transactional state is active; otherwise, the instruction has no effect. Be cautious with the TO condition and immediate sign extension to avoid unintended aborts.