URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_zero_precision.f90] - Rev 694
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.99999write(*,50) -0.99999write(*,50) -9.0write(*,50) -0.99write(*,50) -0.999write(*,50) -0.999write(*,50) -0.59write(*,50) -0.49write(*,100) 37.99999write(*,100) 10345.0write(*,100) 333.678write(*,100) 333.49950 format(f3.0,"<")100 format(f8.0,"<")write(6,'(es6.0)') 1.0e-1write(*,150) -0.99999write(*,150) 0.99999write(*,150) -9.0write(*,150) -0.99write(*,150) -0.999write(*,150) -0.999write(*,150) -0.59write(*,150) -0.49write(*,200) 37.99999write(*,200) 10345.0write(*,200) 333.678write(*,200) 333.499150 format(es7.0,"<")200 format(es8.0,"<")write(*,250) -0.99999write(*,250) 0.99999write(*,250) -9.0write(*,250) -0.99write(*,250) -0.999write(*,250) -0.999write(*,250) -0.59write(*,250) -0.49write(*,300) 37.99999write(*,300) 10345.0write(*,300) 333.678write(*,300) 333.499250 format(1pe7.0,"<")300 format(1pe6.0,"<")end! { dg-output " 1\\.<(\n|\r\n|\r)" }! { dg-output "-1\\.<(\n|\r\n|\r)" }! { dg-output "-9\\.<(\n|\r\n|\r)" }! { dg-output "-1\\.<(\n|\r\n|\r)" }! { dg-output "-1\\.<(\n|\r\n|\r)" }! { dg-output "-1\\.<(\n|\r\n|\r)" }! { dg-output "-1\\.<(\n|\r\n|\r)" }! { dg-output "-0\\.<(\n|\r\n|\r)" }! { dg-output " 38\\.<(\n|\r\n|\r)" }! { dg-output " 10345\\.<(\n|\r\n|\r)" }! { dg-output " 334\\.<(\n|\r\n|\r)" }! { dg-output " 333\\.<(\n|\r\n|\r)" }! { dg-output "1\\.E-01(\n|\r\n|\r)" }! { dg-output "-1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output " 1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-9\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-6\\.E-01<(\n|\r\n|\r)" }! { dg-output "-5\\.E-01<(\n|\r\n|\r)" }! { dg-output " 4\\.E\\+01<(\n|\r\n|\r)" }! { dg-output " 1\\.E\\+04<(\n|\r\n|\r)" }! { dg-output " 3\\.E\\+02<(\n|\r\n|\r)" }! { dg-output " 3\\.E\\+02<(\n|\r\n|\r)" }! { dg-output "-1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output " 1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-9\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-1\\.E\\+00<(\n|\r\n|\r)" }! { dg-output "-6\\.E-01<(\n|\r\n|\r)" }! { dg-output "-5\\.E-01<(\n|\r\n|\r)" }! { dg-output "4\\.E\\+01<(\n|\r\n|\r)" }! { dg-output "1\\.E\\+04<(\n|\r\n|\r)" }! { dg-output "3\\.E\\+02<(\n|\r\n|\r)" }! { dg-output "3\\.E\\+02<(\n|\r\n|\r)" }
