summaryrefslogtreecommitdiff
path: root/libraries/base/tests/Numeric
Commit message (Collapse)AuthorAgeFilesLines
* base: add Numeric.{readBin, showBin} (fix #19036)Artem Pelenitsyn2021-01-024-11/+10
|
* winio: Fix sqrt and openFile009 test casesAndreas Klebinger2020-07-151-1/+1
|
* testsuite: Add assertions that way lists are in fact listsBen Gamari2019-06-151-1/+1
| | | | | | Previously there were a few cases where operations like `omit_ways` were incorrectly passed a single way (e.g. `omit_ways('threaded2')`). This won't work as the author expected.
* removing x87 register support from native code genCarter Schonwald2019-04-102-17/+4
| | | | | | | | | | | | | | | | * simplifies registers to have GPR, Float and Double, by removing the SSE2 and X87 Constructors * makes -msse2 assumed/default for x86 platforms, fixing a long standing nondeterminism in rounding behavior in 32bit haskell code * removes the 80bit floating point representation from the supported float sizes * theres still 1 tiny bit of x87 support needed, for handling float and double return values in FFI calls wrt the C ABI on x86_32, but this one piece does not leak into the rest of NCG. * Lots of code thats not been touched in a long time got deleted as a consequence of all of this all in all, this change paves the way towards a lot of future further improvements in how GHC handles floating point computations, along with making the native code gen more accessible to a larger pool of contributors.
* testsuite: Mark num009 as broken due to #15062Ben Gamari2018-06-161-0/+1
| | | | | | | | | | | | Test Plan: Validate Reviewers: hvr Subscribers: rwbarton, thomie, carter GHC Trac Issues: #15062 Differential Revision: https://phabricator.haskell.org/D4854
* Mark test broken on powerpc64[le]Peter Trommler2018-06-141-0/+1
| | | | | | | | | | | | | | | | | | | Test num009 fails different results. #15062 lists more issues on other platforms. Test T14894 fails because DWARF support is not implemented in the PowerPC native code backend. T5435_v_asm_b fails because the runtime linker is not implemented for PowerPC 64-bit systems. Test Plan: validate Reviewers: bgamari, hvr, erikd, simonmar Reviewed By: bgamari Subscribers: rwbarton, thomie, carter GHC Trac Issues: #13634, #11261, #11259, #15062 Differential Revision: https://phabricator.haskell.org/D4825
* base: Fix handling of showEFloat (Just 0)Ben Gamari2018-05-131-21/+21
| | | | | | | | | | | | | | | | | | | | Previously `showEFloat (Just 0) pi ""` would produce `3.0e0`. Of course, this blatantly disrespects the user's request to print with zero digits of precision. Fix this. This is tested by base's `num008` testcase. Test Plan: Validate Reviewers: hvr Subscribers: rwbarton, thomie, carter GHC Trac Issues: #15115 Differential Revision: https://phabricator.haskell.org/D4665
* testsuite: Add test for negative sqrts (#10010)Ben Gamari2018-04-103-0/+6
| | | | | | | | | | | | Reviewers: hvr, alpmestan Reviewed By: alpmestan Subscribers: thomie, carter GHC Trac Issues: #10010 Differential Revision: https://phabricator.haskell.org/D4543
* nativeGen: Use SSE2 SQRT instructionBen Gamari2017-04-281-0/+5
| | | | | | | | | | Reviewers: austin, dfeuer Subscribers: dfeuer, rwbarton, thomie GHC Trac Issues: #13629 Differential Revision: https://phabricator.haskell.org/D3508
* base: Run num009 with -msse2 on i386Ben Gamari2017-04-061-1/+7
| | | | | | x87's transcendental instructions are terribly imprecise and fail this test. Moreover, we really ouch to enable -mse2 on i386 by default as it is nearly universally supported at this point. See #13540.
* testsuite: Note x87 terribleness in num009Ben Gamari2017-03-261-1/+5
|
* Testsuite: delete Windows line endings [skip ci] (#11631)Thomas Miedema2016-02-231-16/+16
|
* Simplify .gitignore filesHerbert Valerio Riedel2014-06-281-10/+0
| | | | | | | | | It's a bit confusing to have .gitignore files spread all over the filesystem. This commit tries to consolidate those into one .gitignore file per component. Moreover, we try to describe files to be ignored which happen to have a common identifying pattern by glob patterns. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Add .gitignore for autogenerated test files.Edward Z. Yang2014-05-291-0/+10
| | | | | | | | I used this shell command to automatically generate the lists: for i in `git ls-files -o --exclude-standard --directory`; do echo "`basename $i`" >> "`dirname "$i"`/.gitignore"; done Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Drop redundant `{-# LANGUAGE #-}` pragmasHerbert Valerio Riedel2013-09-281-2/+0
| | | | | | | | | | | | | This removes language pragmas from Haskell modules which are implicitly active with `default-language: Haskell2010`. Specifically, the following language extension pragmas are removed by this commit: - PatternGuards - ForeignFunctionInterface - EmptyDataDecls - NoBangPatterns Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Follow changes in testsuiteIan Lynagh2013-02-111-1/+1
|
* Follow changes in the testsuiteIan Lynagh2013-02-111-1/+1
|
* Follow testsuite changesIan Lynagh2013-02-081-2/+2
|
* num010(ghci) is broken on OS X 32 (#7043)Ian Lynagh2013-01-181-1/+4
|
* num009 now only fails on OS X i386, not OS X amd64Ian Lynagh2012-01-291-1/+1
|
* Expand num009 to test more values, and add mingw32 outputSimon Marlow2012-01-163-10/+34
| | | | | | | | | | This test checks that calling trig functions via the FFI gives the same results as the Prelude versions. But it uses an extreme value to test: 1e20, and on Windows this gives slightly different results (for unknown reasons). However, using less extreme values gives reasonable results, so I've added more values to the test to check that the discrepancy is limited to the extreme - indeed it first goes wrong around 1e19, values below that seem to be fine.
* Whitespace only in testsIan Lynagh2011-11-197-48/+48
|
* Move testsuite/tests/lib/Numeric to base/testsIan Lynagh2011-11-1938-0/+995