* g77.f-torture/compile/20000601-2.f: New test.

From-SVN: r39125
This commit is contained in:
David Billinghurst 2001-01-19 07:59:23 +00:00 committed by Neil Booth
parent db4a7a8acf
commit 02d0272552
3 changed files with 32 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2001-01-19 "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
* g77.f-torture/compile/20000601-2.f: New test.
2001-01-18 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/init17.C: New test.

View file

@ -1,5 +1,6 @@
SUBROUTINE SGBTRF( M, KL, KU, AB, LDAB )
* PR fortran/275
* ICE in `change_address', at emit-rtl.c:1589 with -O1 and above
* g77 version 2.96 20000530 (experimental) on mips-sgi-irix6.5/-mabi=64
*

View file

@ -0,0 +1,27 @@
SUBROUTINE SGBTRF( M, KL, KU, AB, LDAB )
* Slightly modified version of 20000601-1.f that still ICES with
* CVS 20010118 g77 on mips-sgi-irix6.5/-mabi=64.
*
* Originally derived from LAPACK 3.0 test suite failure.
*
* David Billinghurst, (David.Billinghurst@riotinto.com.au)
* 18 January 2001
INTEGER KL, KU, LDAB, M
REAL AB( LDAB, * )
INTEGER J, JB, JJ, JP, KV, KM
REAL WORK13(65,64), WORK31(65,64)
KV = KU + KL
DO J = 1, M
JB = MIN( 1, M-J+1 )
DO JJ = J, J + JB - 1
KM = MIN( KL, M-JJ )
JP = MAX( KM+1, AB( KV+1, JJ ) )
CALL SSWAP( JB, AB( KV+1+JJ-J, J ), LDAB-1,
$ AB( KV+JP+JJ-J, J ), LDAB-1 )
END DO
END DO
RETURN
END