Skip to content

Commit 37f38c9

Browse files
committed
Fix TBI test.
Now we perform the correct check: making sure that we have TBI on for iOS7.0-Earlier and on for iOS8.0+Later. The actual functionality that occurs is that we /always/ have TBI on when the triple is an AArch64 target. Then the backend determines via the triple whether it is supported or not for the specific os version. I also removed the executable test bit requires since this test does not execute anything, it just runs FileCheck tests.
1 parent a1aed3b commit 37f38c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Misc/tbi.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// RUN: %target-build-swift -target arm64-apple-ios8.0 -target-cpu cyclone \
2-
// RUN: -O -S %s -parse-as-library | \
2+
// RUN: -O -S %s -parse-as-library | \
33
// RUN: FileCheck --check-prefix=TBI %s
44

5-
// RUN: %target-build-swift -target arm64-apple-ios8.0 -target-cpu cyclone \
5+
// RUN: %target-build-swift -target arm64-apple-ios7.0 -target-cpu cyclone \
66
// RUN: -O -S %s -parse-as-library | \
77
// RUN: FileCheck --check-prefix=NO_TBI %s
8-
// REQUIRES: executable_test
98

109
// REQUIRES: CPU=arm64, OS=ios
1110

12-
// Verify that TBI is on by default in Swift.
11+
// Verify that TBI is on by default in Swift on targets that support it. For our
12+
// purposes this means iOS8.0 or later.
1313

1414
func f(i: Int) -> Int8 {
1515
let j = i & 0xff_ffff_ffff_ffff

0 commit comments

Comments
 (0)