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.

Reply via email to