OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [isnan_2.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! Test for the ISNAN intrinsic on constants
2
!
3
! { dg-do run }
4
! { dg-options "-fno-range-check" }
5
! { dg-add-options ieee }
6
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
7
!
8
  implicit none
9
  character(len=1) :: s
10
  write(s,'(L1)') isnan(0.)
11
  if (s /= 'F') call abort
12
 
13
  write(s,'(L1)') isnan(exp(huge(0.)))
14
  if (s /= 'F') call abort
15
 
16
  write(s,'(L1)') isnan(0./0.)
17
  if (s /= 'T') call abort
18
end

powered by: WebSVN 2.1.0

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