about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-01-27 11:37:01 +0000
committerTrevor Gross <tmgross@umich.edu>2025-01-27 12:34:27 +0000
commit90c76ad3cb1663592d875d0e2468a84961187800 (patch)
tree74dcf9317c9a50aee31aa278595d69627cd771be /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parentf0b932e723f05035ced4f04ff069437d4015b3d1 (diff)
downloadrust-90c76ad3cb1663592d875d0e2468a84961187800.tar.gz
rust-90c76ad3cb1663592d875d0e2468a84961187800.zip
Ignore specific `atan2` and `sin` tests on i586
There seems to be a case of unsoundness with the `i586` version of
`atan2`. For the following test:

    assert_eq!(atan2(2.0, -1.0), atan(2.0 / -1.0) + PI);atan2(2.0, -1.0)

The output is optimization-dependent. The new `release-checked` profile
produces the following failure:

    thread 'math::atan2::sanity_check' panicked at src/math/atan2.rs:123:5:
    assertion `left == right` failed
      left: 2.0344439357957027
     right: 2.0344439357957027

Similarly, `sin::test_near_pi` fails with the following:

    thread 'math::sin::test_near_pi' panicked at src/math/sin.rs:91:5:
    assertion `left == right` failed
      left: 6.273720864039203e-7
     right: 6.273720864039205e-7

Mark the tests ignored on `i586` for now.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions