forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2018-10-25 Richard Biener <rguenther@suse.de>
PR tree-optimization/87665 PR tree-optimization/87745 * tree-vectorizer.h (get_earlier_stmt): Remove. (get_later_stmt): Pick up UID from the original non-pattern stmt. * gfortran.dg/20181025-1.f: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265481 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
rguenth
committed
Oct 25, 2018
1 parent
d62e160
commit eeab9fc
Showing
4 changed files
with
53 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
! { dg-do compile } | ||
! { dg-options "-Ofast" } | ||
! { dg-additional-options "-mavx2" { target { x86_64-*-* i?86-*-* } } } | ||
SUBROUTINE FOO(EF3,CA,ZA,NATA,IC4,NFRGPT) | ||
IMPLICIT DOUBLE PRECISION (A-H,O-Z) | ||
PARAMETER (MXATM=500) | ||
COMMON DE(3,MXATM) | ||
DIMENSION CA(3,NATA) | ||
DIMENSION ZA(NATA) | ||
DIMENSION EF3(3,NFRGPT) | ||
DO II = 1,NATA | ||
XII = XJ - CA(1,II) | ||
YII = YJ - CA(2,II) | ||
ZII = ZJ - CA(3,II) | ||
RJII = SQRT(XII*XII + YII*YII + ZII*ZII) | ||
R3 = RJII*RJII*RJII | ||
IF (IC4.EQ.0) THEN | ||
DE(1,II) = DE(1,II) - S2*ZA(II)*XII/R3 | ||
DE(2,II) = DE(2,II) - S2*ZA(II)*YII/R3 | ||
DE(3,II) = DE(3,II) - S2*ZA(II)*ZII/R3 | ||
ELSE | ||
EF3(1,IC4+II) = EF3(1,IC4+II) - S2*ZA(II)*XII/R3 | ||
EF3(2,IC4+II) = EF3(2,IC4+II) - S2*ZA(II)*YII/R3 | ||
EF3(3,IC4+II) = EF3(3,IC4+II) - S2*ZA(II)*ZII/R3 | ||
END IF | ||
END DO | ||
RETURN | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters