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
22
33// REQUIRES: synchronization
44
@@ -11,7 +11,7 @@ import Synchronization
1111// CHECK-LABEL: sil {{.*}} @localLoad {{.*}} {
1212// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
1313// 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)
1515// CHECK: destroy_addr [[ATOMIC]] : $*Atomic<Int>
1616// CHECK-NEXT: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
1717// CHECK-LABEL: } // end sil function 'localLoad'
@@ -24,7 +24,7 @@ func localLoad() -> Int {
2424// CHECK-LABEL: sil {{.*}} @localStore {{.*}} {
2525// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
2626// 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
2828// CHECK: destroy_addr [[ATOMIC]] : $*Atomic<Int>
2929// CHECK-NEXT: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
3030// CHECK-LABEL: } // end sil function 'localStore'
@@ -37,7 +37,7 @@ func localStore() {
3737// CHECK-LABEL: sil {{.*}} @localExchange {{.*}} {
3838// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
3939// 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
4141// CHECK: destroy_addr [[ATOMIC]] : $*Atomic<Int>
4242// CHECK-NEXT: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
4343// CHECK-LABEL: } // end sil function 'localExchange'
@@ -50,7 +50,7 @@ func localExchange() -> Int {
5050// CHECK-LABEL: sil {{.*}} @localCompareExchange {{.*}} {
5151// CHECK: [[ATOMIC:%.*]] = alloc_stack [lexical] [var_decl] $Atomic<Int>
5252// 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
5454// CHECK: destroy_addr [[ATOMIC]] : $*Atomic<Int>
5555// CHECK-NEXT: dealloc_stack [[ATOMIC]] : $*Atomic<Int>
5656// CHECK-LABEL: } // end sil function 'localCompareExchange'
0 commit comments