Re: Arithmetic bug on ARM (STM 32 F4)

2021-01-22 Thread Titouan Coladon
Hi, I cannot run make check because of the cross-compilation. I also noticed that the GMP function "mpz_probab_prime_p" fail when GMP is built with the latest versions (after 7) of gcc-arm-none-eabi. Titouan Coladon Le 22/01/2021 à 12:33, Vincent Lefevre a écrit : > Hi, > > On 2021-01-22 11:5

Re: Arithmetic bug on ARM (STM 32 F4)

2021-01-22 Thread Titouan Coladon
I think so to, but I currently don't have time for this. Looking for bugs on this kind of target is quite time consuming... I'm not an expert in bare-metal programming and was basically just verifying that my code runs on a STM32F4 board. Le 22/01/2021 à 13:44, Vincent Lefevre a écrit : > On 20

Re: Arithmetic bug on ARM (STM 32 F4)

2021-01-22 Thread Vincent Lefevre
On 2021-01-22 13:29:13 +0100, Titouan Coladon wrote: > I cannot run make check because of the cross-compilation. I think that it would be a good idea to use an emulator to check the GMP build. This should always be done. Compiler bugs are common. -- Vincent Lefèvre - Web:

Re: Arithmetic bug on ARM (STM 32 F4)

2021-01-22 Thread Vincent Lefevre
Hi, On 2021-01-22 11:59:43 +0100, Titouan Coladon wrote: > it's indeed, gcc that must have a bug. > > The older bare metal version: gcc-arm-none-eabi-7-2017-q4-major-linux is > working properly. > > Then the latest version : gcc-arm-none-eabi-8-2018-q4-major-linux, > gcc-arm-none-eabi-9-2020-q2-

Re: Arithmetic bug on ARM (STM 32 F4)

2021-01-22 Thread Titouan Coladon
Thanks for your answer, it's indeed, gcc that must have a bug. The older bare metal version: gcc-arm-none-eabi-7-2017-q4-major-linux is working properly. Then the latest version : gcc-arm-none-eabi-8-2018-q4-major-linux, gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux and gcc-arm-none-eabi-10-20

Re: Arithmetic bug on ARM (STM 32 F4)

2021-01-21 Thread Dennis Clarke
On 1/21/21 3:17 PM, Torbjörn Granlund wrote: > ttt = > > 3578942983869995381409279381784954092773488221200587338717407747084074518600438737913956360066709506626656635118978526559637095289631190671071178702312877654 > > but ttt should be > > 52471831438792835650640560898695535154402152529

Re: Arithmetic bug on ARM (STM 32 F4)

2021-01-21 Thread Torbjörn Granlund
ttt = 3578942983869995381409279381784954092773488221200587338717407747084074518600438737913956360066709506626656635118978526559637095289631190671071178702312877654 but ttt should be 5247183143879283565064056089869553515440215252945038779070795247972433237341511292686962488915110675351673