bebbo / gcc

Bebbo's gcc-6-branch for m68k-amigaos
GNU General Public License v2.0
33 stars 11 forks source link

Optimiser behaves funny on <=68030 #179

Closed alexalkis closed 2 years ago

alexalkis commented 2 years ago

Optimizer trips on this for everything up to 68030. (68040 also looks funny)

http://franke.ms/cex/z/z66s76

bebbo commented 2 years ago

there was no optimizer yet.

bebbo commented 2 years ago

please test

alexalkis commented 2 years ago

Works. Thanks for the fix!

alexalkis commented 2 years ago

Umm, and this one http://franke.ms/cex/z/T85GW9

Does 3 multiplies on 68000 and 2 mutliplies in everything else....

bebbo commented 2 years ago

Umm, and this one http://franke.ms/cex/z/T85GW9

Does 3 multiplies on 68000 and 2 mutliplies in everything else....

the compiler sees only function calls and does no longer know what it's for...

alexalkis commented 2 years ago

Nice, it does 2 mult on 68000 as well. Thanks!