Skip to content

Commit dbe4da9

Browse files
committed
[Test] Eased check lines for 32-bit.
1 parent f1cc37a commit dbe4da9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/SILOptimizer/stdlib/Atomics.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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] $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] $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] $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] $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

Comments
 (0)