1 May 13:04
Strange results with -mfpmath=sse
Arjen Markus <arjen.markus895 <at> gmail.com>
2009-05-01 11:04:29 GMT
2009-05-01 11:04:29 GMT
Hello, with the following program I get rather weird results using gfortran 4.3.0 and the options -mfpmath=sse -march=pentium3: ! chkassoc.f90 -- ! Check associativity ! program chkassoc implicit none integer, parameter :: wp = kind(1.0d0) ! integer, parameter :: wp = kind(1.0) real(wp) :: x real(wp) :: y real(wp) :: z integer :: i do i = 1,50 x = 10.0 ** i y = - 10.0 ** i z = (x + 1.0_wp) + y write(*,*) i, z enddo end program The result is: 1 1.00000000000000 2 1.00000000000000 3 1.00000000000000 4 1.00000000000000(Continue reading)
RSS Feed