This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH PR70729] The second part of patch.
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Yuri Rumyantsev <ysrumyan at gmail dot com>, Thomas Schwinge <thomas at codesourcery dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Richard Biener <richard dot guenther at gmail dot com>, Igor Zamyatin <izamyatin at gmail dot com>, ÐÐÑÑ ÐÐÐÐÐÐÑ <enkovich dot gnu at gmail dot com>
- Date: Sun, 3 Jul 2016 09:40:54 -0700
- Subject: Re: [PATCH PR70729] The second part of patch.
- Authentication-results: sourceware.org; auth=none
- References: <CAEoMCqSx5+c2N9UpvbntYPaTxcBwzk3pAY+Kfc9wFVQp8qDMbA at mail dot gmail dot com> <87eg7gt1bw dot fsf at kepler dot schwinge dot homeip dot net> <CAEoMCqQ6WEO2p0DzbtSuxjbn10=b-0kJXx4tqzXuz16rb7=igg at mail dot gmail dot com> <20160630122145 dot GM7387 at tucnak dot redhat dot com> <CAEoMCqTqHsxOJ9J7NCH2=6qx-JiDpqPd3shoRKhw5Wn8U0QNgA at mail dot gmail dot com> <87eg7eoisz dot fsf at hertz dot schwinge dot homeip dot net> <20160630142844 dot GN7387 at tucnak dot redhat dot com> <CAEoMCqShQro1LDzOzBqUWRA-Csdt9MdNuqqDThPr+uJazNOKvQ at mail dot gmail dot com> <CAMe9rOo-xmtgB1=h1YuX=BwZcq9oGQTvOi4Wt881jPodQMm0Kg at mail dot gmail dot com> <CAMe9rOqUq+e9wJdJVfvKSRxHTrBxgn6sZZy51gGVxnZOAYuBRw at mail dot gmail dot com> <20160703161608 dot GC7387 at tucnak dot redhat dot com>
On Sun, Jul 3, 2016 at 9:16 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Sun, Jul 03, 2016 at 08:56:44AM -0700, H.J. Lu wrote:
>> --- /dev/null
>> +++ b/libgomp/testsuite/libgomp.fortran/pr71734-1.f90
>> @@ -0,0 +1,110 @@
>> +! { dg-do run { target avx_runtime } }
>> +! { dg-additional-options "-msse2" }
>> +! The same as simd3.f90, but compiled with -msse2. we run it only on
>> +! AVX machine where simd4.f90 is compiled with -mavx.
>
> Please just
> include 'simd3.f90'
> here instead. Also, s/simd4.f90/simd3.f90/ above.
>
>> diff --git a/libgomp/testsuite/libgomp.fortran/pr71734-2.f90 b/libgomp/testsuite/libgomp.fortran/pr71734-2.f90
>> new file mode 100644
>> index 0000000..1cad4c1
>> --- /dev/null
>> +++ b/libgomp/testsuite/libgomp.fortran/pr71734-2.f90
>> @@ -0,0 +1,104 @@
>> +! { dg-do run { target avx_runtime } }
>> +! { dg-additional-options "-msse2" }
>> +! The same as simd4.f90, but compiled with -msse2. we run it only on
>> +! AVX machine where simd4.f90 is compiled with -mavx.
>> +
>
> Similarly.
> Ok with those changes.
>
This is what I checked in.
--
H.J.
From 26e0da253574be0e6e8e4dd71b894dded0c92cba Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Sun, 3 Jul 2016 08:54:24 -0700
Subject: [PATCH] Add 2 tests for PR middle-end/71734
simd3.f90 and simd4.f90 fail only with -msse2. But they are compiled
with -mavx on AVX machines. Add 2 tests to compile simd3.f90 and
simd4.f90 with -msse2 on AVX machines.
PR middle-end/71734
* testsuite/libgomp.fortran/pr71734-1.f90: New test.
* testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
---
libgomp/testsuite/libgomp.fortran/pr71734-1.f90 | 6 ++++++
libgomp/testsuite/libgomp.fortran/pr71734-2.f90 | 6 ++++++
2 files changed, 12 insertions(+)
create mode 100644 libgomp/testsuite/libgomp.fortran/pr71734-1.f90
create mode 100644 libgomp/testsuite/libgomp.fortran/pr71734-2.f90
diff --git a/libgomp/testsuite/libgomp.fortran/pr71734-1.f90 b/libgomp/testsuite/libgomp.fortran/pr71734-1.f90
new file mode 100644
index 0000000..9b36a33
--- /dev/null
+++ b/libgomp/testsuite/libgomp.fortran/pr71734-1.f90
@@ -0,0 +1,6 @@
+! { dg-do run { target avx_runtime } }
+! { dg-additional-options "-msse2" }
+! The same as simd3.f90, but compiled with -msse2. we run it only on
+! AVX machine where simd3.f90 is compiled with -mavx.
+
+include 'simd3.f90'
diff --git a/libgomp/testsuite/libgomp.fortran/pr71734-2.f90 b/libgomp/testsuite/libgomp.fortran/pr71734-2.f90
new file mode 100644
index 0000000..2a84f26
--- /dev/null
+++ b/libgomp/testsuite/libgomp.fortran/pr71734-2.f90
@@ -0,0 +1,6 @@
+! { dg-do run { target avx_runtime } }
+! { dg-additional-options "-msse2" }
+! The same as simd4.f90, but compiled with -msse2. we run it only on
+! AVX machine where simd4.f90 is compiled with -mavx.
+
+include 'simd4.f90'
--
2.7.4