Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-7159] stdlib/FloatingPoint.swift.gyb Float/Double.nextUp, .nextDown/nan test fails on armv7 #49707

Closed
eeckstein opened this issue Mar 9, 2018 · 5 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@eeckstein
Copy link
Member

Previous ID SR-7159
Radar None
Original Reporter @eeckstein
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee @xwu
Priority Medium

md5: 6476999028a037d789cc0605b17a39c7

Issue Description:

This needs to be investigated

@belkadan
Copy link
Contributor

belkadan commented Mar 9, 2018

cc @xwu

@xwu
Copy link
Collaborator

xwu commented Mar 9, 2018

@eeckstein Do you have the output of the failing test? ARMv7 handling of NaN is...unique.

@eeckstein
Copy link
Member Author

Here it is:

[...] test/stdlib/FloatingPoint.swift.gyb:69
stdout>>> expected: 2143289344 (of type Swift.UInt32)
stdout>>> actual: 4290772992 (of type Swift.UInt32)
[ FAIL ] FloatingPoint.Float.nextUp, .nextDown/nan

[...] test/stdlib/FloatingPoint.swift.gyb:69
stdout>>> expected: 9221120237041090560 (of type Swift.UInt64)
stdout>>> actual: 18444492273895866368 (of type Swift.UInt64)
[ FAIL ] FloatingPoint.Double.nextUp, .nextDown/nan

@swift-ci
Copy link
Collaborator

Comment by Marco Chini (JIRA)

@eeckstein which version of swift do you use on armv7 and with which operating system? Regards

@eeckstein
Copy link
Member Author

This test failed for master and doesn't depend on the OS.
Anyway, it's already resolved.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

4 participants