Skip to content

Commit dd0cddf

Browse files
Disable some SIMD Codable tests that are failing on i386. (#22116)
It looks like JSONEncoder can't round-trip floating-point values on i386 only. Likely an x87 excess-precision bug, but I don't have time to investigate right now. Tracked by https://bugs.swift.org/browse/SR-9759
1 parent 10e7611 commit dd0cddf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/stdlib/SIMD.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,15 @@ SIMDCodableTests.test("roundTrip") {
6060
testRoundTrip(SIMD2<UInt>.self)
6161
testRoundTrip(SIMD3<UInt>.self)
6262
testRoundTrip(SIMD4<UInt>.self)
63+
#if !arch(i386)
64+
// https://bugs.swift.org/browse/SR-9759
6365
testRoundTrip(SIMD2<Float>.self)
6466
testRoundTrip(SIMD3<Float>.self)
6567
testRoundTrip(SIMD4<Float>.self)
6668
testRoundTrip(SIMD2<Double>.self)
6769
testRoundTrip(SIMD3<Double>.self)
6870
testRoundTrip(SIMD4<Double>.self)
71+
#endif
6972
}
7073

7174
runAllTests()

0 commit comments

Comments
 (0)