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
782
21:30
1
31
 
Format X-form
Opcode 0x7C00061D

Operands

  • TO
    Options
  • RA
    Src
  • SI
    Immediate

Example

tabortwci 4, r4, 16

Registers Altered

CR, MSR

Related

More in Transactional Memory

Reference

Description

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.