Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
unittests/AsmParser/AsmParserTest.cpp | ||
---|---|---|
90 ↗ | (On Diff #42286) | I don't think we can use this here because it is not thread safe (and gtest might run multiple tests in parallel). I'm fine with this going in without a regression test if there's no reasonable way to construct one. |
unittests/AsmParser/AsmParserTest.cpp | ||
---|---|---|
90 ↗ | (On Diff #42286) | Yes, it's the only way of testing I could think about. Unfortunately the Unix locale system isn't very flexible... I'll strip the test code and re-submit if nobody else suggests an idea. |
Ping again :-) This is bitting our users on a regular basis: https://github.com/numba/numba/issues/1656
I think we'd want APFloat::convertFromDecimalString with rmNearestTiesToEven seeing as how we don't expect to see -nan and the like.
I think we'd want APFloat::convertFromDecimalString with rmNearestTiesToEven seeing as how we don't expect to see -nan and the like.
I've looked at this and there are a couple issues:
- convertFromDecimalString() is private
- convertFromDecimalString() doesn't handle leading sign
Also, due to the lexing that occurs before calling APFloat() here, I don't think it can actually be called with -nan and friends. I'll upload an updated patch as it turns out the one here doesn't apply anymore.
Sorry for the ping, but this patch has been marked "accepted and ready to land", and I can't see it on master. Is anything needed on my part?