@@ -54,16 +54,21 @@ pub unsafe fn cmpxchg16b(
54
54
debug_assert ! ( dst as usize % 16 == 0 ) ;
55
55
56
56
let ( val, _ok) = match ( success, failure) {
57
- ( Acquire , Acquire ) => intrinsics:: atomic_cxchg_acq ( dst, old, new) ,
58
- ( Release , Relaxed ) => intrinsics:: atomic_cxchg_rel ( dst, old, new) ,
59
- ( AcqRel , Acquire ) => intrinsics:: atomic_cxchg_acqrel ( dst, old, new) ,
60
- ( Relaxed , Relaxed ) => intrinsics:: atomic_cxchg_relaxed ( dst, old, new) ,
61
- ( SeqCst , SeqCst ) => intrinsics:: atomic_cxchg ( dst, old, new) ,
62
- ( Acquire , Relaxed ) => intrinsics:: atomic_cxchg_acq_failrelaxed ( dst, old, new) ,
63
- ( AcqRel , Relaxed ) => intrinsics:: atomic_cxchg_acqrel_failrelaxed ( dst, old, new) ,
64
- ( SeqCst , Relaxed ) => intrinsics:: atomic_cxchg_failrelaxed ( dst, old, new) ,
65
- ( SeqCst , Acquire ) => intrinsics:: atomic_cxchg_failacq ( dst, old, new) ,
66
-
57
+ ( Relaxed , Relaxed ) => intrinsics:: atomic_cxchg_relaxed_relaxed ( dst, old, new) ,
58
+ //(Relaxed, Acquire) => intrinsics::atomic_cxchg_relaxed_acquire(dst, old, new),
59
+ //(Relaxed, SeqCst) => intrinsics::atomic_cxchg_relaxed_seqcst(dst, old, new),
60
+ ( Acquire , Relaxed ) => intrinsics:: atomic_cxchg_acquire_relaxed ( dst, old, new) ,
61
+ ( Acquire , Acquire ) => intrinsics:: atomic_cxchg_acquire_acquire ( dst, old, new) ,
62
+ //(Acquire, SeqCst) => intrinsics::atomic_cxchg_acquire_seqcst(dst, old, new),
63
+ ( Release , Relaxed ) => intrinsics:: atomic_cxchg_release_relaxed ( dst, old, new) ,
64
+ //(Release, Acquire) => intrinsics::atomic_cxchg_release_acquire(dst, old, new),
65
+ //(Release, SeqCst) => intrinsics::atomic_cxchg_release_seqcst(dst, old, new),
66
+ ( AcqRel , Relaxed ) => intrinsics:: atomic_cxchg_acqrel_relaxed ( dst, old, new) ,
67
+ ( AcqRel , Acquire ) => intrinsics:: atomic_cxchg_acqrel_acquire ( dst, old, new) ,
68
+ //(AcqRel, SeqCst) => intrinsics::atomic_cxchg_acqrel_seqcst(dst, old, new),
69
+ ( SeqCst , Relaxed ) => intrinsics:: atomic_cxchg_seqcst_relaxed ( dst, old, new) ,
70
+ ( SeqCst , Acquire ) => intrinsics:: atomic_cxchg_seqcst_acquire ( dst, old, new) ,
71
+ ( SeqCst , SeqCst ) => intrinsics:: atomic_cxchg_seqcst_seqcst ( dst, old, new) ,
67
72
// The above block is all copied from libcore, and this statement is
68
73
// also copied from libcore except that it's a panic in libcore and we
69
74
// have a little bit more of a lightweight panic here.
0 commit comments