[fpc-devel] Some Opcodes missing in internal assembler for mips32r2

Sergei Gorelkin sergei_gorelkin at mail.ru
Tue May 28 21:49:13 CEST 2013


28.05.2013 23:40, Michael Ring пишет:
> Thank you Sergei, I will have a look at that code.
>
> I have just finished inserting ugly .long 0xxxxxx statements in my code to hardcode the missing
> pieces, I am really glad you answered ;-) ;-)
>
> I also found some statements that get translated wrong:
>
> and     $a0,$a0,0
>
> and     $a1,$a1,0
>
> li      $t2,0
>
> the statements are missing the last param in the generated assembler file:
>
> pic32mx1xxfxxxb.s:87: Error: absolute expression required `li $t2,'
> pic32mx1xxfxxxb.s:102: Error: absolute expression required `and $a0,$a0,'
>
> I guess this needs to be fixed in mips/aasmcpu.pas
>
That's strange, at least 'li' is present in RTL MIPS-specific assembler routines and it seems to be 
handled correctly.

Regards,
Sergei



More information about the fpc-devel mailing list