On 09/11/14 16:35, Henrik Gramner wrote: > Libav currently doesn't have any good unit tests for assembly code > which makes it difficult to write new assembly functions and/or > improve the existing ones. > > x264 have the checkasm tool which does the job, so I decided to to > port it to libav, which turned into more or less a complete rewrite to > make it a bit more modular and not rely on GCC-only features. > > It provides the following features: > * verify correctness by comparing the 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. >
It looks really interesting and I'll nag you later to get a tutorial about it. I'd be fine in adding it to the tree but I was waiting for Janne or Martin to have a say since I usually do not write assembly =) lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
