re PR target/54131 (ICE building 416.gamess, reload_cse_simplify_operands)

PR target/54131
	* gfortran.dg/pr54131.f: New test.

From-SVN: r195835
This commit is contained in:
Alan Modra 2013-02-07 12:56:53 +10:30 committed by Alan Modra
parent 7c4d7f4323
commit cdf383b649
2 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-02-07 Alan Modra <amodra@gmail.com>
PR target/54131
* gfortran.dg/pr54131.f: New test.
2013-02-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/55789

View File

@ -0,0 +1,23 @@
! { dg-do compile }
! { dg-options "-O2 -funroll-loops" }
SUBROUTINE EFPGRD(IFCM,NAT,NVIB,NPUN,FCM,
* DEN,GRD,ENG,DIP,NVST,NFTODO,LIST)
IMPLICIT DOUBLE PRECISION (A-H,O-Z)
DIMENSION DEN(*),GRD(*),ENG(*),DIP(*),LIST(*)
PARAMETER (MXPT=100, MXFRG=50, MXFGPT=MXPT*MXFRG)
COMMON /FGRAD / DEF(3,MXFGPT),DEFT(3,MXFRG),TORQ(3,MXFRG),
* ATORQ(3,MXFRG)
IF(NVST.EQ.0) THEN
CALL PUVIB(IFCM,IW,.FALSE.,NCOORD,IVIB,IATOM,ICOORD,
* ENG(IENG),GRD(IGRD),DIP(IDIP))
END IF
DO 290 IVIB=1,NVIB
DO 220 IFRG=1,NFRG
DO 215 J=1,3
DEFT(J,IFRG)=GRD(INDX+J-1)
215 CONTINUE
INDX=INDX+6
220 CONTINUE
290 CONTINUE
END