Test compile: mpn_lshift_com optimization 2

Richard Biener rguenther at suse.de
Wed Jan 4 10:47:40 UTC 2017


This test intoduced with GMP 6.1.2 FAILs with malloc debugging
because it appearantly relies on malloc returing zeroed memory?
Or it tests the wrong array elements?

> valgrind ./a.out 
==17840== Memcheck, a memory error detector
==17840== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==17840== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright 
info
==17840== Command: ./a.out
==17840== 
==17840== Conditional jump or move depends on uninitialised value(s)
==17840==    at 0x4005F3: main (t.c:42)
==17840== 
==17840== Conditional jump or move depends on uninitialised value(s)
==17840==    at 0x4005FE: main (t.c:42)
==17840== 
==17840== Conditional jump or move depends on uninitialised value(s)
==17840==    at 0x400609: main (t.c:42)
==17840== 
==17840== Conditional jump or move depends on uninitialised value(s)
==17840==    at 0x400614: main (t.c:42)
==17840== 
==17840== Conditional jump or move depends on uninitialised value(s)
==17840==    at 0x40061F: main (t.c:42)
==17840== 
...

I'm locally using calloc for the openSUSE builds.

Richard.

-- 
Richard Biener <rguenther at suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)


More information about the gmp-devel mailing list