@@ -54,15 +54,15 @@ 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) ,
57
+ ( Acquire , Acquire ) => intrinsics:: atomic_cxchg_acquire_acquire ( dst, old, new) ,
58
+ ( Release , Relaxed ) => intrinsics:: atomic_cxchg_release_relaxed ( dst, old, new) ,
59
+ ( AcqRel , Acquire ) => intrinsics:: atomic_cxchg_acqrel_acquire ( dst, old, new) ,
60
+ ( Relaxed , Relaxed ) => intrinsics:: atomic_cxchg_relaxed_relaxed ( dst, old, new) ,
61
+ ( SeqCst , SeqCst ) => intrinsics:: atomic_cxchg_seqcst_seqcst ( dst, old, new) ,
62
+ ( Acquire , Relaxed ) => intrinsics:: atomic_cxchg_acquire_relaxed ( dst, old, new) ,
63
+ ( AcqRel , Relaxed ) => intrinsics:: atomic_cxchg_acqrel_relaxed ( dst, old, new) ,
64
+ ( SeqCst , Relaxed ) => intrinsics:: atomic_cxchg_seqcst_relaxed ( dst, old, new) ,
65
+ ( SeqCst , Acquire ) => intrinsics:: atomic_cxchg_seqcst_acquire ( dst, old, new) ,
66
66
67
67
// The above block is all copied from libcore, and this statement is
68
68
// also copied from libcore except that it's a panic in libcore and we
0 commit comments