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

Fix nm #84

Merged
merged 6 commits into from
Oct 1, 2016
Merged

Fix nm #84

merged 6 commits into from
Oct 1, 2016

Conversation

japaric
Copy link
Member

@japaric japaric commented Oct 1, 2016

We were actually running ci/run.sh without set -e and we were ignoring test failures and failed commands 🙀.

This also undoes #48 which introduced test failures in addsf3 and adddf3 for the arm-unknown-linux-gnueabi target. Sorry @mattico!

Jorge Aparicio added 2 commits September 30, 2016 19:04
the prefix was missing a '-', i.e. arm-linux-gnueabinm was being called.
This also sets -e in run.sh to catch this sort of errors.
This reverts commit e34a605, reversing
changes made to cab88e6.
@japaric
Copy link
Member Author

japaric commented Oct 1, 2016

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 3b8dedd has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 3b8dedd with merge 3b8dedd...

@mattico
Copy link
Contributor

mattico commented Oct 1, 2016

@japaric is there a log of these failures somewhere? Does it look like the same sort of issue we were having with the gnueabihf targets?

@japaric
Copy link
Member Author

japaric commented Oct 1, 2016

@mattico arm-unknown-linux-gnueabi

failures:

---- float::add::tests::_compiler_rt::__adddf3 stdout ----
        thread 'float::add::tests::_compiler_rt::__adddf3' panicked at '[quickcheck] TEST FAILED. Arguments: (0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004387612278450533, -0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017204245911120083)', /cargo/registry/src/github.lhy31512.workers.dev-1ecc6299db9ec823/quickcheck-0.3.1/src/tester.rs:118
note: Run with `RUST_BACKTRACE=1` for a backtrace.

---- float::add::tests::_compiler_rt::__addsf3 stdout ----
        thread 'float::add::tests::_compiler_rt::__addsf3' panicked at '[quickcheck] TEST FAILED. Arguments: (0.000000000000000000000000000000000000000654321, 0.000000000000000000000000000000000000005707838)', /cargo/registry/src/github.lhy31512.workers.dev-1ecc6299db9ec823/quickcheck-0.3.1/src/tester.rs:118

---- float::add::tests::_gcc_s::__adddf3 stdout ----
        thread 'float::add::tests::_gcc_s::__adddf3' panicked at '[quickcheck] TEST FAILED. Arguments: (0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000583564295892806, 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000185772095460437)', /cargo/registry/src/github.lhy31512.workers.dev-1ecc6299db9ec823/quickcheck-0.3.1/src/tester.rs:118

---- float::add::tests::_gcc_s::__addsf3 stdout ----
        thread 'float::add::tests::_gcc_s::__addsf3' panicked at '[quickcheck] TEST FAILED. Arguments: (0.000000000000000000000000000000000000006809104, 0.000000000000000000000000000000000000004278016)', /cargo/registry/src/github.lhy31512.workers.dev-1ecc6299db9ec823/quickcheck-0.3.1/src/tester.rs:118


failures:
    float::add::tests::_compiler_rt::__adddf3
    float::add::tests::_compiler_rt::__addsf3
    float::add::tests::_gcc_s::__adddf3
    float::add::tests::_gcc_s::__addsf3

test result: FAILED. 40 passed; 4 failed; 0 ignored; 0 measured

I don't know if the other arm targets were also failing.

Does it look like the same sort of issue we were having with the gnueabihf targets?

I'm not sure but the same intrinsics are failing, right? addsf3 and adddf3.

@japaric
Copy link
Member Author

japaric commented Oct 1, 2016

Ah, but both the vs compiler_rt and vs gcc_s tests are failing so it's different. On gnueabihf only vs gcc_s was failing iirc.

@japaric
Copy link
Member Author

japaric commented Oct 1, 2016

Ah, mips-gnu and mipsel-gnu were also failing 🙀.

@mattico
Copy link
Contributor

mattico commented Oct 1, 2016

So there's probably a real issue somewhere. Not looking forward to debugging that...

@homunkulus
Copy link
Contributor

💔 Test failed - status-travis

@mattico
Copy link
Contributor

mattico commented Oct 1, 2016

It might be a good idea to remove the add impl for now since it's still broken but the old tests didn't catch it. It might randomly fail if the U{32,64} quickcheck randomly generates a small denormal.

@mattico mattico mentioned this pull request Oct 1, 2016
@japaric
Copy link
Member Author

japaric commented Oct 1, 2016

@homunkulus try

@homunkulus
Copy link
Contributor

⌛ Trying commit d8fa45a with merge d8fa45a...

@japaric
Copy link
Member Author

japaric commented Oct 1, 2016

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit d0a57cb has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit d0a57cb with merge d0a57cb...

@japaric
Copy link
Member Author

japaric commented Oct 1, 2016

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 89ebc46 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 89ebc46 with merge 89ebc46...

@homunkulus
Copy link
Contributor

☀️ Test successful - status-appveyor, status-travis
Approved by: japaric
Pushing 89ebc46 to master...

@homunkulus homunkulus merged commit 89ebc46 into master Oct 1, 2016
@japaric japaric deleted the fix-nm branch October 1, 2016 02:36
tgross35 pushed a commit to tgross35/compiler-builtins that referenced this pull request Feb 23, 2025
84: Implement fmod r=japaric a=P1n3appl3

closes rust-lang#21 
I replaced the `isnanf()` function from `fmodf()` with a call to the core function `is_nan()`. If there's a reason we needed to re-implement it then I can change that back.

Also I couldn't figure out what to do in `src/lib.rs`. Is the `#[cfg(todo]` that I should be removing the one for `mod_euc()`? If so why is the equivalent one for the `f64` version still there?

Co-authored-by: Joseph Ryan <[email protected]>
Co-authored-by: Jorge Aparicio <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants