View Single Post
Old 10 November 2014, 13:10   #1

phx's Avatar
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,067
FPU rounding issues

I'm sorry if that problem has already been fixed, but I often see FPU rounding issues with the UAE core in E-UAE and Hatari.

For reproduction, shouldn't the following program return -1 in d0? It returns 0. The rounding mode in FPCR is ignored.
    fmove.l    fpcr,d1
    and.w      #$ffcf,d1
    or.w       #$0020,d1
    fmove.l    d1,fpcr
    fmove.d    #-0.01,fp0
    fmove.l    fp0,d0
phx is offline  
AdSense AdSense  
Page generated in 0.06946 seconds with 9 queries