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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [g77/] [19990826-2.f] - Blame information for rev 841

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
c { dg-do run }
2
* From: "Billinghurst, David (RTD)" <David.Billinghurst@riotinto.com.au>
3
* Subject: RE: single precision complex bug in g77 - was Testing g77 with LA
4
* PACK 3.0
5
* Date: Thu, 8 Jul 1999 00:55:11 +0100
6
* X-UIDL: b00d9d8081a36fef561b827d255dd4a5
7
 
8
* Here is a slightly simpler and neater test case
9
 
10
      program labug3
11
      implicit none
12
 
13
*  This program gives the wrong answer on mips-sgi-irix6.5
14
*  when compiled with g77 from egcs-19990629 (gcc 2.95 prerelease)
15
*  Get a = 0.0 when it should be 1.0
16
*
17
*  Works with:  -femulate-complex
18
*               egcs-1.1.2
19
*
20
*  Originally derived from LAPACK 3.0 test suite.
21
*
22
*  David Billinghurst, (David.Billinghurst@riotinto.com.au)
23
*  8 July 1999
24
*
25
      complex one, z
26
      real    a, f1
27
      f1(z) = real(z)
28
      one = (1.,0.)
29
      a = f1(one)
30
      if ( abs(a-1.0) .gt. 1.0e-5 ) then
31
         write(6,*) 'A should be 1.0 but it is',a
32
         call abort()
33
      end if
34
      end

powered by: WebSVN 2.1.0

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