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/] [g77/] [20010116.f] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
c { dg-do run }
2
*
3
*  Derived from LAPACK 3.0 routine CHGEQZ
4
*  Fails on i686-pc-cygwin with gcc-2.97 snapshots at -O2 and higher
5
*  PR fortran/1645
6
*
7
*  David Billinghurst, (David.Billinghurst@riotinto.com)
8
*  14 January 2001
9
*  Rewritten by Toon Moene (toon@moene.indiv.nluug.nl)
10
*  15 January 2001
11
*
12
      COMPLEX A(5,5)
13
      DATA A/25*(0.0,0.0)/
14
      A(4,3) = (0.05,0.2)/3.0E-7
15
      A(4,4) = (-0.03,-0.4)
16
      A(5,4) = (-2.0E-07,2.0E-07)
17
      CALL CHGEQZ( 5, A )
18
      END
19
      SUBROUTINE CHGEQZ( N, A )
20
      COMPLEX   A(N,N), X
21
      ABS1( X ) = ABS( REAL( X ) ) + ABS( AIMAG( X ) )
22
      DO J = 4, 2, -1
23
         I = J
24
         TEMP  = ABS1( A(J,J) )
25
         TEMP2 = ABS1( A( J+1, J ) )
26
         TEMPR = MAX( TEMP, TEMP2 )
27
         IF( TEMPR .LT. 1.0 .AND. TEMPR .NE. 0.0 ) THEN
28
            TEMP  = TEMP / TEMPR
29
            TEMP2 = TEMP2 / TEMPR
30
         END IF
31
         IF ( ABS1(A(J,J-1))*TEMP2 .LE. TEMP ) GO TO 90
32
      END DO
33
c     Should not reach here, but need a statement
34
      PRINT*
35
  90  IF ( I .NE. 4 ) THEN
36
         PRINT*,'I =', I, ' but should be 4'
37
         CALL ABORT()
38
      END IF
39
      END

powered by: WebSVN 2.1.0

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