Re: [Qemu-devel] [PULL v3 08/15] tests/fp: add fp-bench

2018-12-18 Thread Alex Bennée
Emilio G. Cota writes: > On Mon, Dec 17, 2018 at 10:56:43 +, Alex Bennée wrote: >> From: "Emilio G. Cota" >> +static void update_random_ops(int n_ops, enum precision prec) >> +{ >> +int i; >> + >> +for (i = 0; i < n_ops; i++) { >> +uint64_t r = random_ops[i]; >> + >> +

Re: [Qemu-devel] [PULL v3 08/15] tests/fp: add fp-bench

2018-12-18 Thread Alex Bennée
Emilio G. Cota writes: > On Mon, Dec 17, 2018 at 10:56:43 +, Alex Bennée wrote: >> From: "Emilio G. Cota" >> +static void update_random_ops(int n_ops, enum precision prec) >> +{ >> +int i; >> + >> +for (i = 0; i < n_ops; i++) { >> +uint64_t r = random_ops[i]; >> + >> +

Re: [Qemu-devel] [PULL v3 08/15] tests/fp: add fp-bench

2018-12-17 Thread Emilio G. Cota
On Mon, Dec 17, 2018 at 10:56:43 +, Alex Bennée wrote: > From: "Emilio G. Cota" > +static void update_random_ops(int n_ops, enum precision prec) > +{ > +int i; > + > +for (i = 0; i < n_ops; i++) { > +uint64_t r = random_ops[i]; > + > +if (prec == PREC_SINGLE || PREC_FLO

[Qemu-devel] [PULL v3 08/15] tests/fp: add fp-bench

2018-12-17 Thread Alex Bennée
From: "Emilio G. Cota" These microbenchmarks will allow us to measure the performance impact of FP emulation optimizations. Note that we can measure both directly the impact on the softfloat functions (with "-t soft"), or the impact on an emulated workload (call with "-t host" and run under qemu