1 C PR rtl-optimization/44691
2 C { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } }
3 C { dg-options "-O2 -fselective-scheduling2" }
5 SUBROUTINE ORIEN
(IW
,NATOT
,NTOTORB
,NATORB
,P
,T
)
6 IMPLICIT DOUBLE PRECISION(A
-H
,O
-Z
)
7 DIMENSION NATORB
(NATOT
),P
(NTOTORB*
(NTOTORB
+1)/2)
8 DIMENSION T
(NTOTORB
,NTOTORB
)
11 IF (IATOM
.NE
.NATOT
) ILAST
=NATORB
(IATOM
+1)-1
12 DO 8000 IAOI
=NATORB
(IATOM
),ILAST
13 DO 7000 IAOJ
= IAOI
+1,ILAST
17 DO 5000 IK
=NATORB
(INOTA
),NTOTORB
22 IKI
=(IMAI*
(IMAI
-1))/2 + IMII
23 IKJ
=(IMAJ*
(IMAJ
-1))/2 + IMIJ
26 R2
= R2
+ (PIKI**4
)-6*(PIKI*PIKI*PIKJ*PIKJ
)+(PIKJ
)
30 Q
= SQRT
(R2*R2
+ R3*R3
)
31 IF (Q
.LT
.1.0D
-08) GO TO 7000
34 CALL ROT1INT
(NTOTORB
,IAOI
,IAOJ
,A
,B
,P
)