https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86831

            Bug ID: 86831
           Summary: three failures in gfortran.fortran-torture with
                    "-Ofast -march=native" on skylake-avx512
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org
  Target Milestone: ---

Triggered by two recent avx512 bugs with Fortran code (PR 86735 and PR 86828),
I just tried the following:


Index: gcc/testsuite/lib/fortran-torture.exp
===================================================================
--- gcc/testsuite/lib/fortran-torture.exp       (revision 263255)
+++ gcc/testsuite/lib/fortran-torture.exp       (working copy)
@@ -81,6 +81,7 @@
        { -O2 -fomit-frame-pointer -finline-functions -funroll-loops } \
        { -O2 -fbounds-check } \
        { -O3 -g } \
+       { -Ofast -march=native } \
        { -Os }
     if { $test_tree_vectorize } {
        lappend options $vectorizer_options


Running "make check-fortran" with this mod on a skylake-avx512 CPU yields the
following failures:

FAIL: gfortran.fortran-torture/execute/in-pack.f90 execution,  -Ofast
-march=native 
FAIL: gfortran.fortran-torture/execute/intrinsic_nearest.f90 execution,  -Ofast
-march=native 
FAIL: gfortran.fortran-torture/execute/nan_inf_fmt.f90 execution,  -Ofast
-march=native

Reply via email to