Skip to content

Commit 4f6a054

Browse files
committed
test: adjust tests for mandatory tail calls on Win64
Since we are force enabling the mandatory tail calls on Windows x64, even at the expense of stack traces and debugging support, adjust the tests to account for the difference.
1 parent 342e5f6 commit 4f6a054

4 files changed

+2
-9
lines changed

test/IRGen/async/hop_to_executor.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ import _Concurrency
2020
// CHECK-arm64e: call {{.*}} @llvm.coro.suspend.async{{.*}}(i32 0, i8* [[RESUME]], i8* bitcast (i8* (i8*)* @__swift_async_resume_get_context to i8*), i8* bitcast (void (i8*, [[INT]], [[INT]], %swift.context*)* @test_simple.1 to i8*), i8* [[RESUME]], [[INT]] %1, [[INT]] %2, %swift.context* {{%[0-9]+}})
2121
// CHECK: [[RET_CONTINUATION:%.*]] = bitcast void (%swift.context*)* {{.*}} to i8*
2222
// CHECK: call i1 (i8*, i1, ...) @llvm.coro.end.async(i8* {{.*}}, i1 false, void (i8*, %swift.context*)* @[[TAIL_CALL_FUNC:.*]], i8* [[RET_CONTINUATION]]
23-
// CHECK-WIN: ret void
24-
// CHECK-SYSV: unreachable
23+
// CHECK: unreachable
2524

2625
sil @test_simple : $@async (@guaranteed Optional<Builtin.Executor>) -> () {
2726
bb0(%0 : $Optional<Builtin.Executor>):

test/IRGen/async/non_musttail_target.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend -disable-legacy-type-info -parse-stdlib %s -disable-llvm-optzns -disable-swift-specific-llvm-optzns -disable-objc-interop -module-name main -emit-ir -o - | %FileCheck %s
33

44
// REQUIRES: concurrency
5-
// REQUIRES: OS=wasi || OS=windows-msvc
5+
// REQUIRES: OS=wasi
66

77
sil_stage canonical
88

test/IRGen/async/run-call-dynamic-void_to_void.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
// REQUIRES: concurrency_runtime
1111
// UNSUPPORTED: back_deployment_runtime
1212

13-
// Windows does not do swiftailcc
14-
// XFAIL: OS=windows-msvc
15-
1613
import _Concurrency
1714

1815

test/IRGen/async_dynamic_replacement.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// RUN: %target-swift-frontend %s -emit-ir -disable-availability-checking -disable-objc-interop | %FileCheck %s
22

3-
// Windows does not do swiftailcc
4-
// XFAIL: OS=windows-msvc
5-
63
// REQUIRES: concurrency
74

85
public dynamic func number() async -> Int {

0 commit comments

Comments
 (0)