lwsync
Lightweight Synchronize (Pseudo)
lwsync
Orders loads with loads, stores with stores, and loads with stores. Does NOT order stores with loads. (Encoded as sync 1).
Details
Lightweight Sync. Extended mnemonic for SYNC (sync 1). Provides a lightweight memory synchronization barrier for ordering loads and stores without full heavyweight sync semantics.
Pseudocode Operation
MemoryBarrier(Light)
Programming Note
Lightweight sync. Orders loads and stores before the barrier against loads and stores after it, but does not guarantee store-to-load ordering. Sufficient for producer-consumer patterns without data-dependent stores.
Example
lwsync
Encoding
Binary Layout
31
0
0
6
1
8
0
11
598
21
/
31