Skip to content

Commit f336bf0

Browse files
committed
[test] Update for availability adjustments in Accelerate
1 parent 2cc38fc commit f336bf0

16 files changed

+36
-36
lines changed

test/stdlib/Accelerate.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if #available(iOS 10.0, OSX 10.12, tvOS 10.0, watchOS 4.0, *) {
7575
//
7676
//===----------------------------------------------------------------------===//
7777

78-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
78+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
7979

8080
AccelerateTests.test("vDSP/DiscreteCosineTransform") {
8181
let n = 1024
@@ -122,7 +122,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
122122
//
123123
//===----------------------------------------------------------------------===//
124124

125-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
125+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
126126

127127
AccelerateTests.test("vDSP/SinglePrecisionSlidingWindowSum") {
128128
let source: [Float] = [1, 10, 12, 9, 3, 7, 2, 6]
@@ -163,7 +163,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
163163
//
164164
//===----------------------------------------------------------------------===//
165165

166-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
166+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
167167

168168
let n = 1024
169169

@@ -308,7 +308,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
308308
//
309309
//===----------------------------------------------------------------------===//
310310

311-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
311+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
312312

313313
AccelerateTests.test("vDSP/DifferenceEquationSinglePrecision") {
314314
let n = 256
@@ -393,7 +393,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
393393
//
394394
//===----------------------------------------------------------------------===//
395395

396-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
396+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
397397
AccelerateTests.test("vDSP/DownsampleSinglePrecision") {
398398
let decimationFactor = 2
399399
let filterLength: vDSP_Length = 2
@@ -481,7 +481,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
481481
//
482482
//===----------------------------------------------------------------------===//
483483

484-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
484+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
485485

486486
AccelerateTests.test("vDSP/PolynomialEvaluationSinglePrecision") {
487487
let coefficients: [Float] = [2, 3, 4, 5, 6, 7, 8, 9, 10]

test/stdlib/Accelerate_Quadrature.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var AccelerateQuadratureTests = TestSuite("Accelerate_Quadrature")
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
func vectorExp(x: UnsafeBufferPointer<Double>,
2222
y: UnsafeMutableBufferPointer<Double>) {

test/stdlib/Accelerate_vDSPBiquad.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Accelerate_vDSPBiquadTests = TestSuite("Accelerate_vDSPBiquad")
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
let n = 256
2222

test/stdlib/Accelerate_vDSPClippingLimitThreshold.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Accelerate_vDSPClippingLimitThresholdTests = TestSuite("Accelerate_vDSPClipp
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
let count = 256
2222
let n = vDSP_Length(256)
@@ -184,7 +184,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
184184
//
185185
//===----------------------------------------------------------------------===//
186186

187-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
187+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
188188

189189
let count = 256
190190
let n = vDSP_Length(256)

test/stdlib/Accelerate_vDSPComplexOperations.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Accelerate_vDSPComplexOperationsTests = TestSuite("Accelerate_vDSPComplexOpe
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
let n = 1024
2222

@@ -276,7 +276,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
276276
//
277277
//===----------------------------------------------------------------------===//
278278

279-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
279+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
280280

281281
let n = 1024
282282

test/stdlib/Accelerate_vDSPConversion.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var AccelerateTests_vDSPConversion = TestSuite("Accelerate_vDSPConversion")
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
AccelerateTests_vDSPConversion.test("vDSP/SinglePrecisionRectToPolar") {
2222
let source: [Float] = [2, 4,
@@ -125,7 +125,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
125125
//
126126
//===----------------------------------------------------------------------===//
127127

128-
if #available(iOS 9999, OSX 9999, tvOS 9999, watchOS 9999, *) {
128+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
129129

130130
let n = vDSP_Length(10)
131131

@@ -851,7 +851,7 @@ if #available(iOS 9999, OSX 9999, tvOS 9999, watchOS 9999, *) {
851851
//
852852
//===----------------------------------------------------------------------===//
853853

854-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
854+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
855855

856856
AccelerateTests_vDSPConversion.test("vDSP/PowerToDecibelsSinglePrecision") {
857857
let source: [Float] = [1, 10, 100, 2, 4, 8, 16, 101,
@@ -964,7 +964,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
964964
//
965965
//===----------------------------------------------------------------------===//
966966

967-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
967+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
968968

969969
AccelerateTests_vDSPConversion.test("vDSP/ComplexFormatConversionSinglePrecision") {
970970
var real: [Float] = [4, 5, 6]

test/stdlib/Accelerate_vDSPConvolution.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var Accelerate_vDSPConvolutionTests = TestSuite("Accelerate_vDSPConvolution")
1717
//
1818
//===----------------------------------------------------------------------===//
1919

20-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
20+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2121

2222
let count = 256
2323
let n = vDSP_Length(256)
@@ -83,7 +83,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
8383
//
8484
//===----------------------------------------------------------------------===//
8585

86-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
86+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
8787

8888
let count = 256
8989
let n = vDSP_Length(256)
@@ -149,7 +149,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
149149
//
150150
//===----------------------------------------------------------------------===//
151151

152-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
152+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
153153

154154
let width = 512
155155
let height = 128
@@ -252,7 +252,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
252252
//
253253
//===----------------------------------------------------------------------===//
254254

255-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
255+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
256256

257257
let width = 512
258258
let height = 128

test/stdlib/Accelerate_vDSPElementwiseArithmetic.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func lround(_ x: Float) -> Int {
2020
return lround(Double(x))
2121
}
2222

23-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
23+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2424

2525
var result = [Float.nan]
2626

@@ -461,7 +461,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
461461
//
462462
//===----------------------------------------------------------------------===//
463463

464-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
464+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
465465

466466
var result = [Double.nan]
467467

test/stdlib/Accelerate_vDSPFillClearGenerate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Accelerate_vDSPFillClearGenerateTests = TestSuite("Accelerate_vDSPFillClearG
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, OSX 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
let count = 256
2222
let n = vDSP_Length(256)

test/stdlib/Accelerate_vDSPFourierTransform.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var Accelerate_vDSPFourierTransformTests = TestSuite("Accelerate_vDSPFourierTran
1717
//
1818
//===----------------------------------------------------------------------===//
1919

20-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
20+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2121

2222
let n = 2048
2323
let tau: Float = .pi * 2
@@ -203,7 +203,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
203203
//
204204
//===----------------------------------------------------------------------===//
205205

206-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
206+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
207207

208208
let n = 2048
209209
let tau: Double = .pi * 2
@@ -388,7 +388,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
388388
//
389389
//===----------------------------------------------------------------------===//
390390

391-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
391+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
392392

393393
Accelerate_vDSPFourierTransformTests.test("vDSP/SinglePrecisionComplexConversions") {
394394
func convert(splitComplexVector: DSPSplitComplex,

test/stdlib/Accelerate_vDSPGeometry.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Accelerate_vDSPGeometryTests = TestSuite("Accelerate_vDSPGeometry")
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
Accelerate_vDSPGeometryTests.test("vDSP/SinglePrecisionDot") {
2222
let a: [Float] = [ 1.2, 6.7, 0.22334, 101.9, 90.1, 100.999 ]
@@ -57,7 +57,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
5757
//
5858
//===----------------------------------------------------------------------===//
5959

60-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
60+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
6161

6262
let xlegs = [(1, 2), (4, 5), (2, 1), (1000, 1), (-1055, 55)]
6363
let ylegs = [(-1000, 2), (4, -50), (-25, -100), (1, 1000), (5, 1)]

test/stdlib/Accelerate_vDSPIntegration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Accelerate_vDSPIntegrationTests = TestSuite("Accelerate_vDSPIntegration")
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
let count = 1024
2222
let n = vDSP_Length(1024)

test/stdlib/Accelerate_vDSPReduction.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Accelerate_vDSPReductionTests = TestSuite("Accelerate_vDSPReduction")
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
let n = vDSP_Length(256)
2222

@@ -211,7 +211,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
211211
//
212212
//===----------------------------------------------------------------------===//
213213

214-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
214+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
215215

216216
let n = vDSP_Length(256)
217217

test/stdlib/Accelerate_vDSPSingleVectorOps.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var Accelerate_vDSPSingleVectorOpsTests = TestSuite("Accelerate_vDSPSingleVector
1717
//
1818
//===----------------------------------------------------------------------===//
1919

20-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
20+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2121

2222
let count = 50
2323
let n = vDSP_Length(50)
@@ -242,7 +242,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
242242
//
243243
//===----------------------------------------------------------------------===//
244244

245-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
245+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
246246

247247
let count = 50
248248
let n = vDSP_Length(50)

test/stdlib/Accelerate_vForce.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Accelerate_vForceTests = TestSuite("Accelerate_vForce")
1616
//
1717
//===----------------------------------------------------------------------===//
1818

19-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
2020

2121
var result = [Float]()
2222
var legacyResult = [Float]()
@@ -644,7 +644,7 @@ if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
644644
//
645645
//===----------------------------------------------------------------------===//
646646

647-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
647+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
648648

649649
var result = [Double]()
650650
var legacyResult = [Double]()

test/stdlib/Accelerate_vImage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Accelerate
1010

1111
var Accelerate_vImageTests = TestSuite("Accelerate_vImage")
1212

13-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
13+
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) {
1414
let width = UInt(64)
1515
let height = UInt(32)
1616
let widthi = 64

0 commit comments

Comments
 (0)