Code: Select all
int a = 1024;
int b = 768;
int c = a * b;
The disassemble version of the code is :
Code: Select all
li $v0, 0x400
li $v1, 0x300
mult $v0, $v1
mflo $v0
If I don't use gdb, run this code directly, I will get the corrent result 786432.
I am using psp-gcc 4.3.2 and psp-gdb 6.8 from the latest psptoolchain SVN trunk.
TODO: I will get some more deatils on this bug.