Is asm code selection optimal?

Marco Bodrato bodrato at mail.dm.unipi.it
Tue May 16 21:03:41 UTC 2017


Ciao,

Il Mar, 16 Maggio 2017 3:53 pm, Torbjörn Granlund ha scritto:
> Therefore the "tuneup" GMP test reporting category now contains tables
> comparing all working assembly code for each CPU.

Really interesting!

> Sample result file:
>   https://gmplib.org/devel/tm/gmp/tuneup/success/brazen.gmplib.org-stat:64.txt

I'm not sure I'm able to understand what exactly the columns report...

I expected the "default" column always equivalent to one of the other ones...

But it sometimes is worst than all alternatives...

mpn_divrem_1.3
    default      x86_64        coreisbr      core2
                 divrem_1.asm  divrem_1.asm  divrem_1.asm
1   70.0224      34.3025       37.2641       37.6082
2   42.3045      22.0282       23.7997       24.3283
3   30.4712      19.5858       19.5641       19.8066
4   24.7977      16.3102       17.6666       17.7169

Do you think it may make sense to also add a column with the C version?

Regards,
m

-- 
http://bodrato.it/papers/



More information about the gmp-devel mailing list