OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [output_exponents_1.f90] - Rev 384

Compare with Previous | Blame | View Log

! { dg-do run }
! { dg-options "-std=legacy" }
!
! PR 21376
! we used to take the logarithm of zero in this special case
  character*10 c
  write (c,'(e10.4)') 1.0
  if(c /= "0.1000E+01") call abort
  write (c,'(e10.4)') 0.0
  if(c /= "0.0000E+00") call abort
  write (c,'(e10.4)') 1.0d100
  if(c /= "0.1000+101") call abort
  write (c,'(e10.4)') 1.0d-102
  if(c /= "0.1000-101") call abort
end

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.