summaryrefslogtreecommitdiff
path: root/testsuite/tests/primops
Commit message (Collapse)AuthorAgeFilesLines
* Typos in non-codeGabor Greif2016-03-301-1/+1
|
* Testsuite: delete empty files [skip ci]Thomas Miedema2016-02-251-0/+0
|
* Another batch of typo fixes in non-codeGabor Greif2016-02-111-1/+1
|
* Add testcase for getSizeofMutableByteArray#Ben Gamari2015-12-273-0/+31
| | | | | | | | | | | | | | | In an attempt to track down #11296. Unfortunately the primop appears to be working as expected. Test Plan: validate Reviewers: hvr, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1706 GHC Trac Issues: #11296
* testsuite/T9430: Fix word-size dependenceBen Gamari2015-12-271-12/+16
| | | | | | | | | | | | | | Summary: This test was wrong. Test Plan: Validate Reviewers: erikd, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1702 GHC Trac Issues: #11294
* testsuite/codegen: Add missing dummy MakefilesBen Gamari2015-12-272-0/+6
|
* T10678: Fix bytes allocated statisticBen Gamari2015-11-121-1/+1
|
* New magic function for applying realWorld#Ben Gamari2015-11-122-0/+31
| | | | | | | | | | | | | | Test Plan: validate Reviewers: goldfire, erikd, rwbarton, simonpj, austin, simonmar, hvr Reviewed By: simonpj Subscribers: simonmar, thomie Differential Revision: https://phabricator.haskell.org/D1103 GHC Trac Issues: #10678
* Support MO_U_QuotRem2 in LLVM backendMichal Terepeta2015-08-031-0/+35
| | | | | | | | | | | | | | | | | | | This adds support for MO_U_QuotRem2 in LLVM backend. Similarly to MO_U_Mul2 we use the standard LLVM instructions (in this case 'udiv' and 'urem') but do the computation on double the word width (e.g., for 64-bit we will do them on 128 registers). Test Plan: validate Reviewers: rwbarton, austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1100 GHC Trac Issues: #9430
* Give raise# a return type of open kind (#10481)Reid Barton2015-07-313-0/+11
| | | | | | | | | | | | | | Test Plan: validate Reviewers: austin, bgamari, simonpj Reviewed By: simonpj Subscribers: simonpj, thomie Differential Revision: https://phabricator.haskell.org/D1116 GHC Trac Issues: #10481
* LlvmCodeGen: add support for MO_U_Mul2 CallishMachOpMichal Terepeta2015-07-201-0/+18
| | | | | | | | | | | | | | | | | | | This adds support MO_U_Mul2 to the LLVM backend by simply using 'mul' instruction but operating at twice the bit width (e.g., for 64 bit words we will generate mul that operates on 128 bits and then extract the two 64 bit values for the result of the CallishMachOp). Test Plan: validate Reviewers: rwbarton, austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1068 GHC Trac Issues: #9430
* Testsuite: delete remaining only_compiler_types(['ghc']) setupsThomas Miedema2015-07-141-1/+1
| | | | | No point in pretending other compilers can use the GHC testsuite. This makes the *.T files a bit shorter.
* Support MO_{Add,Sub}IntC and MO_Add2 in the LLVM backendMichal Terepeta2015-07-042-1/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | This includes: - Adding new LlvmType called LMStructP that represents an unpacked struct (this is necessary since LLVM's instructions the llvm.sadd.with.overflow.* return an unpacked struct). - Modifications to LlvmCodeGen.CodeGen to generate the LLVM instructions for the primops. - Modifications to StgCmmPrim to actually use those three instructions if we use the LLVM backend (so far they were only used for NCG). Test Plan: validate Reviewers: austin, rwbarton, bgamari Reviewed By: bgamari Subscribers: thomie, bgamari Differential Revision: https://phabricator.haskell.org/D991 GHC Trac Issues: #9430
* Simplify .gitignore filesHerbert Valerio Riedel2014-06-281-2/+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/+2
| | | | | | | | 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>
* Follow changes in comparison primops (see #6135)Jan Stolarek2013-09-183-1490/+738
|
* Rellocate test for T7689 to different directoryJan Stolarek2013-08-193-0/+117
| | | | | This test is testing primops, so it should be in the primops/ directory and not numeric.
* Comparison primops return Int# (Fixes #6135)Jan Stolarek2013-08-146-0/+1576
This patch adds tests for new primops and fixes the existing ones. For a deatiled discussion of this changes please visit the wiki page: http://hackage.haskell.org/trac/ghc/wiki/PrimBool