View Single Post
Old 10 November 2014, 12:10   #1
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 986
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.
Code:
    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
    rts
phx is offline  
AdSense AdSense  
 
Page generated in 0.08232 seconds with 9 queries