[RFC] Test coverage for --param boundary values

Martin Liška mliska@suse.cz
Fri Jul 8 10:43:00 GMT 2016


Hello.

As I already briefly discussed my attempt with Jakub, it would be interesting to provide
compile tests that would cover boundary values of params.
That revealed e.g. PR rtl-optimization/71634 and many similar.

The crucial part of the patch is selection of a proper source file that would expose boundary
values. Second question is what optimization level to pick up as a base level.

My initial attempt is nanojpeg ([1]), which is a single file implementation of JPEG compression/decompression
algorithm. Well, testing all boundary values takes 3m20s on i7 machine (it's single-threaded) and it introduces
232 new PASSes.

Thoughts?
Thanks,
Martin

[1] http://keyj.emphy.de/nanojpeg/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-tests-that-test-boundary-values-of-params.patch
Type: text/x-patch
Size: 182133 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160708/adad017b/attachment.bin>


More information about the Gcc-patches mailing list