@@ -8,25 +8,25 @@ use std::sync::atomic::{AtomicI32, Ordering::*};
88// CHECK-LABEL: @compare_exchange
99#[ no_mangle]
1010pub fn compare_exchange ( a : & AtomicI32 ) {
11- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 10 monotonic monotonic
11+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 10 monotonic monotonic
1212 let _ = a. compare_exchange ( 0 , 10 , Relaxed , Relaxed ) ;
1313
14- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 20 release monotonic
14+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 20 release monotonic
1515 let _ = a. compare_exchange ( 0 , 20 , Release , Relaxed ) ;
1616
17- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 30 acquire monotonic
18- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 31 acquire acquire
17+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 30 acquire monotonic
18+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 31 acquire acquire
1919 let _ = a. compare_exchange ( 0 , 30 , Acquire , Relaxed ) ;
2020 let _ = a. compare_exchange ( 0 , 31 , Acquire , Acquire ) ;
2121
22- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 40 acq_rel monotonic
23- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 41 acq_rel acquire
22+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 40 acq_rel monotonic
23+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 41 acq_rel acquire
2424 let _ = a. compare_exchange ( 0 , 40 , AcqRel , Relaxed ) ;
2525 let _ = a. compare_exchange ( 0 , 41 , AcqRel , Acquire ) ;
2626
27- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 50 seq_cst monotonic
28- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 51 seq_cst acquire
29- // CHECK: cmpxchg i32* %{{.*}}, i32 0, i32 52 seq_cst seq_cst
27+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 50 seq_cst monotonic
28+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 51 seq_cst acquire
29+ // CHECK: cmpxchg {{ i32\*|ptr}} %{{.*}}, i32 0, i32 52 seq_cst seq_cst
3030 let _ = a. compare_exchange ( 0 , 50 , SeqCst , Relaxed ) ;
3131 let _ = a. compare_exchange ( 0 , 51 , SeqCst , Acquire ) ;
3232 let _ = a. compare_exchange ( 0 , 52 , SeqCst , SeqCst ) ;
@@ -35,25 +35,25 @@ pub fn compare_exchange(a: &AtomicI32) {
3535// CHECK-LABEL: @compare_exchange_weak
3636#[ no_mangle]
3737pub fn compare_exchange_weak ( w : & AtomicI32 ) {
38- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 10 monotonic monotonic
38+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 10 monotonic monotonic
3939 let _ = w. compare_exchange_weak ( 1 , 10 , Relaxed , Relaxed ) ;
4040
41- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 20 release monotonic
41+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 20 release monotonic
4242 let _ = w. compare_exchange_weak ( 1 , 20 , Release , Relaxed ) ;
4343
44- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 30 acquire monotonic
45- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 31 acquire acquire
44+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 30 acquire monotonic
45+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 31 acquire acquire
4646 let _ = w. compare_exchange_weak ( 1 , 30 , Acquire , Relaxed ) ;
4747 let _ = w. compare_exchange_weak ( 1 , 31 , Acquire , Acquire ) ;
4848
49- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 40 acq_rel monotonic
50- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 41 acq_rel acquire
49+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 40 acq_rel monotonic
50+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 41 acq_rel acquire
5151 let _ = w. compare_exchange_weak ( 1 , 40 , AcqRel , Relaxed ) ;
5252 let _ = w. compare_exchange_weak ( 1 , 41 , AcqRel , Acquire ) ;
5353
54- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 50 seq_cst monotonic
55- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 51 seq_cst acquire
56- // CHECK: cmpxchg weak i32* %{{.*}}, i32 1, i32 52 seq_cst seq_cst
54+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 50 seq_cst monotonic
55+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 51 seq_cst acquire
56+ // CHECK: cmpxchg weak {{ i32\*|ptr}} %{{.*}}, i32 1, i32 52 seq_cst seq_cst
5757 let _ = w. compare_exchange_weak ( 1 , 50 , SeqCst , Relaxed ) ;
5858 let _ = w. compare_exchange_weak ( 1 , 51 , SeqCst , Acquire ) ;
5959 let _ = w. compare_exchange_weak ( 1 , 52 , SeqCst , SeqCst ) ;
0 commit comments