Skip to content

Commit d09c0f8

Browse files
authored
Merge pull request #30949 from compnerd/fp80-android
AutoDiff: Android, Windows does not support FP80
2 parents c7b671a + 4b67e95 commit d09c0f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/AutoDiff/stdlib/floating_point.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %target-run-simple-swiftgyb(-Xfrontend -enable-experimental-forward-mode-differentiation)
22
// REQUIRES: executable_test
33

4-
#if (arch(i386) || arch(x86_64)) && !os(Windows)
4+
#if !(os(Windows) || os(Android)) && (arch(i386) || arch(x86_64))
55
typealias TestLiteralType = Float80
66
#else
77
typealias TestLiteralType = Double
@@ -31,7 +31,7 @@ func expectEqualWithTolerance<T>(_ expected: TestLiteralType, _ actual: T,
3131
%for Self in ['Float', 'Double', 'Float80']:
3232

3333
%if Self == 'Float80':
34-
#if !os(Windows) && (arch(i386) || arch(x86_64))
34+
#if !(os(Windows) || os(Android)) && (arch(i386) || arch(x86_64))
3535
%end
3636

3737
FloatingPointDerivativeTests.test("${Self}.+") {

test/AutoDiff/stdlib/tgmath_derivatives.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#error("Unsupported platform")
1212
#endif
1313

14-
#if (arch(i386) || arch(x86_64)) && !os(Windows)
14+
#if !(os(Windows) || os(Android)) && (arch(i386) || arch(x86_64))
1515
typealias TestLiteralType = Float80
1616
#else
1717
typealias TestLiteralType = Double

0 commit comments

Comments
 (0)