[ooc-compiler] bug on ARM cpu
Brought to you by:
mva
|
From: Norayr C. <no...@ar...> - 2011-12-31 19:12:13
|
So, I noticed that a simple REAL division on ARM gives unexpected results. Then I solved it by doing shifts instead of using division, cause I had to finish the project in time. This is obviously ooc bug, cause it generates different code on ARM and on x86(_64): In attached examples you can inspect generated C output: < f0 = 5.3300000000000000E+2f/2.5600000000000000E+2f; --- > f0 = 0.0000000000000000f/0.0000000000000000f; First line was generated on x86_64 while the last one was generated on 32bit ARM/GNU+Linux. I've compiled ooc as usual under GNU/Linux. The system I've tested it is maemo (core is Debian) Hope anybody knows where to search for a problem. Actually I can try to debug ooc in free time. Just its already hard because one have to debug non readable generated C code, and its even harder on maemo without my favourite ddd. Sincerely, Norayr |