[fpc-pascal]fpc_mod_qword

Marcel Martin mm10 at ellipsa.net
Sat Jul 10 11:18:40 CEST 2004


Hello,

I saw in the file fpc/rtl/i386/int64p.inc that the function
fpc_mod_qword was disabled with the comment "This does not work 
correctly".

The problem is a bad instruction (presumably a typo):

  .Lqwordmodr_big_divisior:
     |
     |  
   shrdl %cl,%edx,%eax
   shrl %cl,%edx
   rorl $1,%edi     <-- should be a "roll"
   divl %ebx
   movl z,%ebx
     |
     |

-- 
mm
http://www.ellipsa.net/




More information about the fpc-pascal mailing list