@@ -16,6 +16,9 @@ var FloatingPointConversionFailures = TestSuite("FloatingPointToFloatingPointCon
1616% SelfSignificandBits = self_type.bits
1717% Self = self_type.stdlib_name
1818
19+ % if Self == 'Float16':
20+ #if !os(macOS) && !(os(iOS) && targetEnvironment(macCatalyst))
21+ % end
1922% if Self == 'Float80':
2023#if !os(Windows) && (arch(i386) || arch(x86_64))
2124% end
@@ -24,14 +27,17 @@ var FloatingPointConversionFailures = TestSuite("FloatingPointToFloatingPointCon
2427% OtherSignificandBits = other_type.bits
2528% OtherFloat = other_type.stdlib_name
2629
30+ % if OtherFloat == 'Float16':
31+ #if !os(macOS) && !(os(iOS) && targetEnvironment(macCatalyst))
32+ % end
2733% if OtherFloat == 'Float80':
2834#if !os(Windows) && (arch(i386) || arch(x86_64))
2935% end
3036
3137% if OtherSignificandBits <= SelfSignificandBits:
3238
3339% if OtherFloat == 'Float16':
34- if #available(macOS 10.16, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
40+ if #available(iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
3541% end
3642FloatingPointConversionTruncations.test("${OtherFloat}To${Self}Conversion")
3743
@@ -56,7 +62,7 @@ FloatingPointConversionTruncations.test("${OtherFloat}To${Self}Conversion")
5662% else:
5763
5864% if Self == 'Float16':
59- if #available(macOS 10.16, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
65+ if #available(iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
6066% end
6167FloatingPointConversionTruncations.test("${OtherFloat}To${Self}Conversion")
6268 .forEach(in: [
@@ -77,7 +83,7 @@ FloatingPointConversionTruncations.test("${OtherFloat}To${Self}Conversion")
7783% end
7884
7985% if 'Float16' in [Self, OtherFloat]:
80- if #available(macOS 10.16, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
86+ if #available(iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
8187% end
8288FloatingPointConversionTruncations.test("${OtherFloat}To${Self}Conversion/special") {
8389 expectEqual( 1.0 as ${Self}, ${Self}(exactly: 1.0 as ${OtherFloat}))
@@ -119,6 +125,9 @@ FloatingPointConversionFailures.test("${OtherFloat}To${Self}Conversion/AlwaysSuc
119125}
120126% end
121127
128+ % if OtherFloat == 'Float16':
129+ #endif
130+ % end
122131% if OtherFloat == 'Float80':
123132#endif
124133% end
@@ -138,7 +147,8 @@ _UnimplementedError()
138147
139148extension ${OtherInt} {
140149 % if Self == 'Float16':
141- @available(macOS 10.16, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
150+ @available(iOS 14.0, watchOS 7.0, tvOS 14.0, *)
151+ @available(macOS, unavailable)
142152 % end
143153 static var _test${Self}Conversion: [(${OtherInt}, ${OtherInt}, ${OtherInt}?)] {
144154 if bitWidth > ${Self}.significandBitCount + 1 {
@@ -165,7 +175,7 @@ extension ${OtherInt} {
165175}
166176
167177% if Self == 'Float16':
168- if #available(macOS 10.16, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
178+ if #available(iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
169179% end
170180FixedPointConversionTruncations.test("${OtherInt}to${Self}")
171181 .forEach(in: ${OtherInt}._test${Self}Conversion) {
@@ -187,6 +197,9 @@ FixedPointConversionTruncations.test("${OtherInt}to${Self}")
187197
188198% end # for in int_types
189199
200+ % if Self == 'Float16':
201+ #endif
202+ % end
190203% if Self == 'Float80':
191204#endif
192205% end
0 commit comments