Skip to content

Commit e7da51e

Browse files
committed
Adjust floating-point nextUp test for NaN on ARM
1 parent 4058407 commit e7da51e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: test/stdlib/FloatingPoint.swift.gyb

+2-7
Original file line numberDiff line numberDiff line change
@@ -574,21 +574,16 @@ FloatingPoint.test("Double.nextUp, .nextDown")
574574
expectBitwiseEqual(-prev, (-succ).nextUp)
575575
}
576576

577-
// FIXME: This test is failing on armv4: SR-7159
578-
#if arch(i386) || arch(x86_64)
579-
580577
%for Self in ['Float', 'Double']:
581578
FloatingPoint.test("${Self}.nextUp, .nextDown/nan") {
582579
let x = ${Self}.nan
583-
expectBitwiseEqual(x, x.nextUp)
584-
expectBitwiseEqual(x, x.nextDown)
580+
expectTrue(x.nextUp.isNaN)
581+
expectTrue(x.nextDown.isNaN)
585582
expectTrue((-x).nextDown.isNaN)
586583
expectTrue((-x).nextUp.isNaN)
587584
}
588585
%end
589586

590-
#endif
591-
592587
#if arch(i386) || arch(x86_64)
593588

594589
FloatingPoint.test("Float80/ExpressibleByIntegerLiteral") {

0 commit comments

Comments
 (0)