This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/61170] New: FAIL: libgomp.fortran/declare-simd-[12].f90 on darwin
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 May 2014 12:49:00 +0000
- Subject: [Bug target/61170] New: FAIL: libgomp.fortran/declare-simd-[12].f90 on darwin
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61170
Bug ID: 61170
Summary: FAIL: libgomp.fortran/declare-simd-[12].f90 on darwin
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: dominiq at lps dot ens.fr
CC: iains at gcc dot gnu.org, jakub at gcc dot gnu.org
Host: x86_64-apple-darwin13
Target: x86_64-apple-darwin13
Build: x86_64-apple-darwin13
The tests libgomp.fortran/declare-simd-[12].f90 fail on darwin, because
gfortran generates avx code not supported by the native 'as'. This can be fixed
with the following patch (using clang assembler)
diff -up ../_clean/libgomp/testsuite/libgomp.fortran/declare-simd-1.f90
libgomp/testsuite/libgomp.fortran/declare-simd-1.f90
--- ../_clean/libgomp/testsuite/libgomp.fortran/declare-simd-1.f90
2014-05-12 09:39:21.000000000 +0200
+++ libgomp/testsuite/libgomp.fortran/declare-simd-1.f90 2014-05-12
14:50:04.000000000 +0200
@@ -1,6 +1,7 @@
! { dg-options "-fno-inline" }
! { dg-additional-options "-msse2" { target sse2_runtime } }
! { dg-additional-options "-mavx" { target avx_runtime } }
+! { dg-additional-options "-Wa,-q" { target x86_64-apple-darwin13* } }
module declare_simd_1_mod
contains
diff -up ../_clean/libgomp/testsuite/libgomp.fortran/declare-simd-2.f90
libgomp/testsuite/libgomp.fortran/declare-simd-2.f90
--- ../_clean/libgomp/testsuite/libgomp.fortran/declare-simd-2.f90
2014-05-12 09:39:21.000000000 +0200
+++ libgomp/testsuite/libgomp.fortran/declare-simd-2.f90 2014-05-12
14:50:36.000000000 +0200
@@ -3,6 +3,7 @@
! { dg-additional-sources declare-simd-3.f90 }
! { dg-additional-options "-msse2" { target sse2_runtime } }
! { dg-additional-options "-mavx" { target avx_runtime } }
+! { dg-additional-options "-Wa,-q" { target x86_64-apple-darwin13* } }
module declare_simd_2_mod
contains
except for the tests with -flto: see pr61168.