atomics A.3b: real swap (xchg) + fence emission + unit test (green)
emitAtomicRmw xchg arm (swap) and emitAtomicFence (LLVMBuildFence) now real. examples/1703 (swap old=7/now=42, 'atomicrmw xchg') + 1704 (fence release/acquire/ seq_cst) green. Unit test 'emit: atomic swap (xchg) + fence'. Stream A (atomics) is feature-complete: load/store, RMW (add/sub/and/or/xor/min/max), compare_exchange[_weak], swap, fence. Suite green (721/0).
This commit is contained in:
@@ -1 +1 @@
|
||||
1
|
||||
0
|
||||
|
||||
@@ -1 +1 @@
|
||||
error: atomic swap (xchg) LLVM emission not yet implemented (Stream A, A.3b)
|
||||
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
|
||||
swap old: 7
|
||||
swap now: 42
|
||||
|
||||
@@ -1 +1 @@
|
||||
1
|
||||
0
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
error: atomic fence LLVM emission not yet implemented (Stream A, A.3b)
|
||||
error: atomic fence LLVM emission not yet implemented (Stream A, A.3b)
|
||||
error: atomic fence LLVM emission not yet implemented (Stream A, A.3b)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
|
||||
after fences: 3
|
||||
|
||||
Reference in New Issue
Block a user