summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2016-07-03 16:40:22 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2016-07-03 16:40:22 +0000
commit0a36dce822f5f5f399c2e9014eb3a88bbb2c0e79 (patch)
tree7a3bae923db4cc35039cf8f6b29d8cddca1c89b7 /libgomp
parent13077d77f4201c61cbeae732b44780241612eb6f (diff)
downloadgcc-0a36dce822f5f5f399c2e9014eb3a88bbb2c0e79.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog6
-rw-r--r--libgomp/testsuite/libgomp.fortran/pr71734-1.f906
-rw-r--r--libgomp/testsuite/libgomp.fortran/pr71734-2.f906
3 files changed, 18 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 41bc67c1157..35e29c06776 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,9 @@
+2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR middle-end/71734
+ * testsuite/libgomp.fortran/pr71734-1.f90: New test.
+ * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
+
2016-07-01 Jakub Jelinek <jakub@redhat.com>
PR fortran/71717
diff --git a/libgomp/testsuite/libgomp.fortran/pr71734-1.f90 b/libgomp/testsuite/libgomp.fortran/pr71734-1.f90
new file mode 100644
index 00000000000..9b36a33ca2d
--- /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 00000000000..2a84f26291c
--- /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'