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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_zero_precision.f90] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do run }
! PR28354 Incorrect rounding of .99999 with f3.0 format specifier
! PR30910 ES format not quite right...
! Test case derived from PR. Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>
  write(*,50) -0.99999
  write(*,50) 0.99999
  write(*,50) -9.0
  write(*,50) -0.99
  write(*,50) -0.999
  write(*,50) -0.999
  write(*,50) -0.59
  write(*,50) -0.49
  write(*,100) 37.99999
  write(*,100) 10345.0
  write(*,100) 333.678
  write(*,100) 333.499
  50   format(f3.0,"<")
 100   format(f8.0,"<")
  write(6,'(es6.0)') 1.0e-1
  write(*,150) -0.99999
  write(*,150) 0.99999
  write(*,150) -9.0
  write(*,150) -0.99
  write(*,150) -0.999
  write(*,150) -0.999
  write(*,150) -0.59
  write(*,150) -0.49
  write(*,200) 37.99999
  write(*,200) 10345.0
  write(*,200) 333.678
  write(*,200) 333.499
 150   format(es7.0,"<")
 200   format(es8.0,"<")
  write(*,250) -0.99999
  write(*,250) 0.99999
  write(*,250) -9.0
  write(*,250) -0.99
  write(*,250) -0.999
  write(*,250) -0.999
  write(*,250) -0.59
  write(*,250) -0.49
  write(*,300) 37.99999
  write(*,300) 10345.0
  write(*,300) 333.678
  write(*,300) 333.499
 250   format(1pe7.0,"<")
 300   format(1pe6.0,"<")
  end
! {dg-output "-1.<"
! {dg-output " 1.<"
! {dg-output "-9.<"
! {dg-output "-1.<"
! {dg-output "-1.<"
! {dg-output "-1.<"
! {dg-output "-1.<"
! {dg-output " 0.<"
! {dg-output "     38.<"
! {dg-output "  10345.<"
! {dg-output "    334.<"
! {dg-output "    333.<"
! {dg-output "1.E-01"
! {dg-output "-1.E+00<"
! {dg-output " 1.E+00<"
! {dg-output "-9.E+00<"
! {dg-output "-1.E+00<"
! {dg-output "-1.E+00<"
! {dg-output "-1.E+00<"
! {dg-output "-6.E-01<"
! {dg-output "-5.E-01<"
! {dg-output "  4.E+01<"
! {dg-output "  1.E+04<"
! {dg-output "  3.E+02<"
! {dg-output "  3.E+02<"
! {dg-output "-1.E+00<"
! {dg-output " 1.E+00<"
! {dg-output "-9.E+00<"
! {dg-output "-1.E+00<"
! {dg-output "-1.E+00<"
! {dg-output "-1.E+00<"
! {dg-output "-6.E-01<"
! {dg-output "-5.E-01<"
! {dg-output "4.E+01<"
! {dg-output "1.E+04<"
! {dg-output "3.E+02<"
! {dg-output "3.E+02<"

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.