1
- // RUN: %target-swift-frontend -O -emit-sil -disable-availability-checking %s | %FileCheck %s
1
+ // RUN: %target-swift-frontend -O -emit-sil -disable-availability-checking %s | %IRGenFileCheck %s
2
2
3
3
// REQUIRES: synchronization
4
4
@@ -11,7 +11,7 @@ import Synchronization
11
11
// CHECK-LABEL: sil {{.*}} @localLoad {{.*}} {
12
12
// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
13
13
// CHECK: [[ATOMIC_PTR:%.*]] = address_to_pointer [[ATOMIC]]
14
- // CHECK: builtin "atomicload_monotonic_Int64 "([[ATOMIC_PTR]] : $Builtin.RawPointer)
14
+ // CHECK: builtin "atomicload_monotonic_Int[[PTR_SIZE]] "([[ATOMIC_PTR]] : $Builtin.RawPointer)
15
15
// CHECK: destroy_addr [[ATOMIC]] : $*Atomic<Int>
16
16
// CHECK-NEXT: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
17
17
// CHECK-LABEL: } // end sil function 'localLoad'
@@ -24,7 +24,7 @@ func localLoad() -> Int {
24
24
// CHECK-LABEL: sil {{.*}} @localStore {{.*}} {
25
25
// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
26
26
// CHECK: [[ATOMIC_PTR:%.*]] = address_to_pointer [[ATOMIC]]
27
- // CHECK: builtin "atomicstore_release_Int64 "([[ATOMIC_PTR]] : $Builtin.RawPointer
27
+ // CHECK: builtin "atomicstore_release_Int[[PTR_SIZE]] "([[ATOMIC_PTR]] : $Builtin.RawPointer
28
28
// CHECK: destroy_addr [[ATOMIC]] : $*Atomic<Int>
29
29
// CHECK-NEXT: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
30
30
// CHECK-LABEL: } // end sil function 'localStore'
@@ -37,7 +37,7 @@ func localStore() {
37
37
// CHECK-LABEL: sil {{.*}} @localExchange {{.*}} {
38
38
// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
39
39
// CHECK: [[ATOMIC_PTR:%.*]] = address_to_pointer [[ATOMIC]]
40
- // CHECK: builtin "atomicrmw_xchg_acquire_Int64 "([[ATOMIC_PTR]] : $Builtin.RawPointer
40
+ // CHECK: builtin "atomicrmw_xchg_acquire_Int[[PTR_SIZE]] "([[ATOMIC_PTR]] : $Builtin.RawPointer
41
41
// CHECK: destroy_addr [[ATOMIC]] : $*Atomic<Int>
42
42
// CHECK-NEXT: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
43
43
// CHECK-LABEL: } // end sil function 'localExchange'
@@ -50,7 +50,7 @@ func localExchange() -> Int {
50
50
// CHECK-LABEL: sil {{.*}} @localCompareExchange {{.*}} {
51
51
// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
52
52
// CHECK: [[ATOMIC_PTR:%.*]] = address_to_pointer [[ATOMIC]]
53
- // CHECK: builtin "cmpxchg_seqcst_seqcst_Int64 "([[ATOMIC_PTR]] : $Builtin.RawPointer
53
+ // CHECK: builtin "cmpxchg_seqcst_seqcst_Int[[PTR_SIZE]] "([[ATOMIC_PTR]] : $Builtin.RawPointer
54
54
// CHECK: destroy_addr [[ATOMIC]] : $*Atomic<Int>
55
55
// CHECK-NEXT: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
56
56
// CHECK-LABEL: } // end sil function 'localCompareExchange'
0 commit comments