[LLVMdev] LNT BenchmarkGame

Duncan Sands baldrick at free.fr
Tue Mar 12 09:21:26 PDT 2013

Hi Renato,

On 12/03/13 15:33, Renato Golin wrote:
> On 12 March 2013 14:24, Tim Northover <t.p.northover at gmail.com
> <mailto:t.p.northover at gmail.com>> wrote:
>     Could be worth a try. But if that thing really is generating random
>     numbers I'm not sure replacing one genuine cast-iron random number
>     with another is the best solution long-term.
> The test is initializing srand(1), so in theory, it shouldn't be different
> between compilers, since Clang is using the same libraries.
> Also, if the "native" result is generated by GCC, than all problems go away,
> since the result will be target dependent (or rather, library dependent). Is
> there a way to turn on the dynamic generation of the native file instead of
> copying it from the reference_output?

IIRC the reference output is not used by default.  You have to put
in the Makefile in order to make use of the reference output.  As
BenchmarkGame doesn't have this, are you sure the reference output
is causing the problem?

Ciao, Duncan.

More information about the llvm-dev mailing list