tabortwci

Transaction Abort Word Conditional Immediate

tabortwci TO, RA, SI

Aborts transaction if word condition (Immediate) is met.

Details

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.

Pseudocode 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.

Example

tabortwci 4, r4, 16

Encoding

Binary Layout
31
0
TO
6
RA
11
SI
16
782
21
1
31
 
Format X-form
Opcode 0x7C00061D
Extension Transactional Memory
Registers Altered CR, MSR

Operands

  • TO
    Options
  • RA
    Src
  • SI
    Immediate