Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: FLT_ROUNDS failures ... gcc/binutils regression ?



On Tue, Sep 27, 2011 at 02:39:40PM -0700, Matt Thomas wrote:
[...]
> you could recode it to extract two bits from 0x78 (01.11.10.00) which
> avoid a memory reference.  Something like:
> 
>         fnstcw        -4(%rsp)
>         movl  -4(%rsp),  %ecx
>       shrl    $9, %ecx
>         andl    $6, %ecx
>         movl    $120, %eax
>         sarl    %cl, %eax
>         andl    $3, %eax
>         ret

It works, but with the inverted bits sequence :

   00.10.11.01 = 0x2d = 45

Thanks.

-- 
Nicolas Joly

Projects and Developments in Bioinformatics
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index