My machine is running 64bit Ubuntu, and GCC was configured with this line: /opt/v850/gcc-4.4.4/configure --target=v850-elf --enable-targets=all --prefix=/opt/v850 --disable-multilib --enable-languages=c --without-headers --disable-nls --disable-threads --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp --disable-decimal-float --enable-checking=release The build command used is: v850-elf-gcc -nostdlib -nostartfiles -nodefaultlibs -save-temps ctest.c -c -o ctest.v850.o There were no warnings or other output
I built a bit of code containing a simple for loop that increments a number from 0 to 8, and the assembly generated uses BLE for branching if the condition is met. The proper instruction to generate would be BGE, since we want to run the body of the code while 7 >= iterator, whereas it currently checks if 7 <= iterator. -- Summary: V850 increment loops compile into incorrect assembly Product: gcc Version: 4.4.4 Status: UNCONFIRMED Severity: major Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: trap15 at raidenii dot net GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: v850-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373