summaryrefslogtreecommitdiff
path: root/tests/checkasm/h264pred.c
Commit message (Collapse)AuthorAge
* Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-21
|\ | | | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit '711781d7a1714ea4eb0217eb1ba04811978c43d1'Hendrik Leppkes2016-01-02
|\| | | | | | | | | | | | | * commit '711781d7a1714ea4eb0217eb1ba04811978c43d1': x86: checkasm: check for or handle missing cleanup after MMX instructions Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * x86: checkasm: check for or handle missing cleanup after MMX instructionsJanne Grunau2015-12-21
| | | | | | | | | | | | | | | | Not every asm routine is expected clear the MMX state after returning. It is however a requisite for testing floating point code in checkasm. Annotate functions requiring cleanup with declare_func_emms() and issue emms after the call. The remaining functions are checked for having a cleared MMX state after return.
| * checkasm: Explicitly declare function prototypesHenrik Gramner2015-08-20
| | | | | | | | | | | | | | | | | | | | | | | | Now we no longer have to rely on function pointers intentionally declared without specified argument types. This makes it easier to support functions with floating point parameters or return values as well as functions returning 64-bit values on 32-bit architectures. It also avoids having to explicitly cast strides to ptrdiff_t for example. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * checkasm: Use LOCAL_ALIGNEDMichael Niedermayer2015-07-26
| | | | | | | | | | | | Fixes alignment issues and bus errors. Signed-off-by: Martin Storsjö <martin@martin.st>
* | checkasm: Explicitly declare function prototypesHenrik Gramner2015-08-19
| | | | | | | | | | | | | | | | | | | | Now we no longer have to rely on function pointers intentionally declared without specified argument types. This makes it easier to support functions with floating point parameters or return values as well as functions returning 64-bit values on 32-bit architectures. It also avoids having to explicitly cast strides to ptrdiff_t for example.
* | tests/checkasm/h264pred: Use LOCAL_ALIGNED_16()Michael Niedermayer2015-07-23
| | | | | | | | | | | | Fixes alignment issue and bus errors Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'e605bf3b590d295f215fcc9fd58eb11be55b68cb'Michael Niedermayer2015-07-22
|\| | | | | | | | | | | | | * commit 'e605bf3b590d295f215fcc9fd58eb11be55b68cb': checkasm: remove empty array initializer list in h264pred test Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * checkasm: remove empty array initializer list in h264pred testJanne Grunau2015-07-22
| | | | | | | | Fixes MSVC compilation.
* | Merge commit 'fc56868399213d3e9be19bdebeb64df233b39a7e'Michael Niedermayer2015-07-18
|\| | | | | | | | | | | | | * commit 'fc56868399213d3e9be19bdebeb64df233b39a7e': cosmetics: Reformat checkasm tests Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * cosmetics: Reformat checkasm testsLuca Barbato2015-07-17
| |
* | Merge commit '8bc67ec2c0d2b5444d51a1bed1d50f0e10d92717'Michael Niedermayer2015-07-12
|/ | | | | | | * commit '8bc67ec2c0d2b5444d51a1bed1d50f0e10d92717': Checkasm: assembly testing and benchmarking tool Merged-by: Michael Niedermayer <michael@niedermayer.cc>
* Checkasm: assembly testing and benchmarking toolHenrik Gramner2015-07-12
It provides the following features: * verify correctness by comparing output to the C version. * detect failure to save and restore clobbered callee-saved registers. * detect 32-bit parameters being used as if they were 64-bit in x86-64 (the upper halves are not guaranteed to be zero - but in practice they very often are, which makes those bugs hard to spot otherwise). * easy benchmarking. Compile by running 'make checkasm'. Execute by running 'tests/checkasm/checkasm'. Optional arguments are '--bench' to run benchmarks for all functions, '--bench=<pattern>' to run benchmarks for all functions that starts with <pattern>, and '<integer>' to seed the PRNG for reproducible results. Contains unit tests for most h264pred functions to get started, more tests can be added afterwards using those as a reference. Loosely based on code from x264. Currently only supports x86 and x86-64, but additional architectures shouldn't be too much of an obstacle to add. Note that functions with floating point parameters or floating point return values are not supported. Some compiler-specific features or preprocessor hacks would likely be required to add support for that. Signed-off-by: Janne Grunau <janne-libav@jannau.net>