This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/61680] New: vectorization gives wrong answer for sandybridge target
- From: "longb at cray dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Jul 2014 23:24:26 +0000
- Subject: [Bug fortran/61680] New: vectorization gives wrong answer for sandybridge target
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61680
Bug ID: 61680
Summary: vectorization gives wrong answer for sandybridge
target
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: longb at cray dot com
Created attachment 33056
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33056&action=edit
test3.f90
Bad result:
> gfortran -march=corei7-avx -O3 test3.f90
> ./a.out
10.000000000000000
Good result:
> gfortran -march=corei7-avx -O3 -fno-tree-vectorize test3.f90
> ./a.out
13.114877048604001
>
Version info:
> gfortran --version
GNU Fortran (GCC) 4.9.0 20140422 (Cray Inc.)
Copyright (C) 2014 Free Software Foundation, Inc.