cmpxchg working for atomic-compare-exchange-1, atomic-compare-exchange-2, atomic-compare-exchange-3 with and without -O3