|
8 | 8 | import Swift
|
9 | 9 | import StdlibUnittest
|
10 | 10 |
|
11 |
| -#if arch(i386) || arch(x86_64) |
| 11 | +#if !os(Windows) && (arch(i386) || arch(x86_64)) |
12 | 12 |
|
13 | 13 | struct Float80Bits : Equatable, CustomStringConvertible {
|
14 | 14 | var signAndExponent: UInt16
|
@@ -58,7 +58,7 @@ extension Float80 {
|
58 | 58 | % ('Float80', 'Float80Bits')
|
59 | 59 | % ]:
|
60 | 60 | % if FloatTy == 'Float80':
|
61 |
| -#if arch(i386) || arch(x86_64) |
| 61 | +#if !os(Windows) && (arch(i386) || arch(x86_64)) |
62 | 62 | % end
|
63 | 63 | func expectBitwiseEqual(
|
64 | 64 | _ expected: ${FloatTy}, _ actual: ${FloatTy},
|
@@ -605,7 +605,7 @@ FloatingPoint.test("${Self}.nextUp, .nextDown/nan") {
|
605 | 605 | }
|
606 | 606 | %end
|
607 | 607 |
|
608 |
| -#if arch(i386) || arch(x86_64) |
| 608 | +#if !os(Windows) && (arch(i386) || arch(x86_64)) |
609 | 609 |
|
610 | 610 | FloatingPoint.test("Float80/ExpressibleByIntegerLiteral") {
|
611 | 611 | expectEqual(positiveOne(), 1.0 as Float80)
|
@@ -825,7 +825,7 @@ FloatingPoint.test("${FloatSelf}/{Comparable,Hashable,Equatable}") {
|
825 | 825 | % end
|
826 | 826 |
|
827 | 827 | % for Self in ['Float32', 'Float64', 'Float80']:
|
828 |
| -#if ${'arch(i386) || arch(x86_64)' if Self == 'Float80' else 'true'} |
| 828 | +#if ${'!os(Windows) && (arch(i386) || arch(x86_64))' if Self == 'Float80' else 'true'} |
829 | 829 | FloatingPoint.test("${Self}/Strideable") {
|
830 | 830 | // FIXME: the test data could probably be better chosen here, to
|
831 | 831 | // exercise more cases. Note: NaNs (and possibly Infs) are singular
|
@@ -1018,7 +1018,7 @@ FloatingPoint.test("Float64/Literals") {
|
1018 | 1018 | }
|
1019 | 1019 | }
|
1020 | 1020 |
|
1021 |
| -#if arch(i386) || arch(x86_64) |
| 1021 | +#if !os(Windows) && (arch(i386) || arch(x86_64)) |
1022 | 1022 |
|
1023 | 1023 | FloatingPoint.test("Float80/Literals") {
|
1024 | 1024 | do {
|
@@ -1156,7 +1156,7 @@ FloatingPoint.test("Float64/quietNaN") {
|
1156 | 1156 | }
|
1157 | 1157 | }
|
1158 | 1158 |
|
1159 |
| -#if arch(i386) || arch(x86_64) |
| 1159 | +#if !os(Windows) && (arch(i386) || arch(x86_64)) |
1160 | 1160 |
|
1161 | 1161 | FloatingPoint.test("Float80/quietNaN") {
|
1162 | 1162 | do {
|
@@ -1251,7 +1251,7 @@ FloatingPoint.test("Float64/signalingNaN") {
|
1251 | 1251 |
|
1252 | 1252 | #endif
|
1253 | 1253 |
|
1254 |
| -#if arch(x86_64) |
| 1254 | +#if !os(Windows) && arch(x86_64) |
1255 | 1255 |
|
1256 | 1256 | FloatingPoint.test("Float80/signalingNaN") {
|
1257 | 1257 | do {
|
|
0 commit comments