Re: Wrong x86 assembler in the kernel

Bill Allombert <[email protected]> Fri, 20 Sep 2024 09:40:51 +0200
Newsgroups gmane.comp.mathematics.pari.devel
Message-ID <Zu0nAyrI3_RNdXqh@seventeen>
On Thu, Sep 19, 2024 at 04:41:41PM -0700, Ilya Zakharevich wrote:
> It seems that even ChatGPT produces better code than one in PARI :―(
> 
> According to
>    https://www.felixcloutier.com/x86/bsr#flags-affected

This page does not mention the carry nor the CF flag.

> the code for bfffo() needs a trailing
>   : "cc"

Do you have a test case ?

Cheers,
Bill.