[openssl-dev] Assembler warns about constants in poly1306-x86_64.pl

Andy Polyakov appro at openssl.org
Wed Jun 22 11:16:01 UTC 2016


> Yasm 1.3.0 (Like nasm, but it embeds debug symbols into the asm code
> on Windows) reports:
> 
> poly1305-x86_64.asm(456): warning : value does not fit in 32 bit field
> poly1305-x86_64.asm(459): warning : value does not fit in 32 bit field
> poly1305-x86_64.asm(1346): warning : value does not fit in 32 bit field
> poly1305-x86_64.asm(1349): warning : value does not fit in 32 bit field
> 
> 
> For these lines:
>     and \$`-1<<31`,$d1
>     and \$`-1<<31`,$d2
>     and \$`-1<<31`,$d1
>     and \$`-1<<31`,$d2
> 
> I'm not sure what approach is preferable to silence these warnings though.

I can't reproduce this. I generated file with 'perl
crypto/poly1305/asm/poly1305-x86_64.pl nasm a.asm', and then compiled it
with 'yasm -f win64 a.asm', no warnings observed. 'yasm --version' does
print 1.3.0. How do corresponding lines read in *your* *generated* file.
Mine are 'and     r[89],-2147483648'



More information about the openssl-dev mailing list