tend.

Transaction End

tend. A

Commits the current hardware transaction. If successful, memory changes become visible atomically.

Encoding

Binary Layout
31
0:5
/
6:10
A
11:15
/
16:20
686
21:30
1
31
 
Format X-form
Opcode 0x7C00055D

Operands

  • A
    Abort Control

Example

tend. 0

// Commit transaction.

Registers Altered

CR0

Related

More in Transactional Memory

Reference

Description

Transaction End. Ends the current transaction. If A=1 (All), ends all nested transactions. On success the memory updates made in the transaction become visible. On failure a non-transactional abort occurs.

Operation

CommitTransaction()

Programming Note

Use `tend` to end a transaction, making its changes permanent if successful. If an error occurs, it triggers a non-transactional abort. Ensure all nested transactions are properly managed when using the A=1 option.