summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-16 18:39:08 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-16 18:39:08 +0000
commita0dcce1ce47b067ed1fc2677232947e8cb11a491 (patch)
tree1129ed91db3463017153bf3103060231a30d36d0
parent24394dc01d1c39ef83c6fb8d7e838743ee763707 (diff)
downloadgcc-a0dcce1ce47b067ed1fc2677232947e8cb11a491.tar.gz
PR target/35944
* gfortran.dg/pr35944-1.f90: New test. * gfortran.dg/pr35944-2.f90: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134359 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog10
-rw-r--r--gcc/testsuite/gfortran.dg/pr35944-1.f9022
-rw-r--r--gcc/testsuite/gfortran.dg/pr35944-2.f9015
3 files changed, 45 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 85f4cb37bcd..6f60dc33c7d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR target/35944
+ * gfortran.dg/pr35944-1.f90: New test.
+ * gfortran.dg/pr35944-2.f90: Ditto.
+
2008-04-16 Jakub Jelinek <jakub@redhat.com>
PR c/35739
@@ -212,7 +218,7 @@
* gfortran.dg/bind_c_usage_14.f03: Adjust.
-2008-04-08 Andy Hutchinson <hutchinsonandy@aim.com>
+2008-04-08 Andy Hutchinson <hutchinsonandy@aim.com>
PR target/35005
* execute/20071221-1.c: Adapt test for 16 bit int targets.
@@ -250,7 +256,7 @@
2008-04-07 Kai Tietz <kai.tietz@onevision.com>
PR/35842
- * gcc.dg/torture/pr35842.c: New.
+ * gcc.dg/torture/pr35842.c: New.
2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
diff --git a/gcc/testsuite/gfortran.dg/pr35944-1.f90 b/gcc/testsuite/gfortran.dg/pr35944-1.f90
new file mode 100644
index 00000000000..76521cad9e9
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr35944-1.f90
@@ -0,0 +1,22 @@
+! { dg-do run }
+
+ implicit none
+ integer i
+ real rda1(10), rda(10), rval
+ double precision dda1(10), dda(10), dval
+
+ rda = (/ 1,2,3,4,5,6,7,8,9,10 /)
+ rDA1 = MOD (1.1*(rDA(1)-5.0), P=(rDA-2.5))
+ DO i = 1, 10
+ rVAL = MOD (1.1*(rDA(1)-5.0), P=(rDA(i)-2.5))
+ if (rval /= rda1(i)) call abort
+ enddo
+
+ dda = (/ 1,2,3,4,5,6,7,8,9,10 /)
+ dDA1 = MOD (1.1d0*(dDA(1)-5.0d0), P=(dDA-2.5d0))
+ DO i = 1, 10
+ dVAL = MOD (1.1d0*(dDA(1)-5.0d0), P=(dDA(i)-2.5d0))
+ if (dval /= dda1(i)) call abort
+ enddo
+
+end
diff --git a/gcc/testsuite/gfortran.dg/pr35944-2.f90 b/gcc/testsuite/gfortran.dg/pr35944-2.f90
new file mode 100644
index 00000000000..976332ded00
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr35944-2.f90
@@ -0,0 +1,15 @@
+! { dg-do run }
+! { dg-require-effective-target fortran_large_real }
+
+ implicit none
+ integer,parameter :: k = selected_real_kind (precision (0.0_8) + 1)
+ integer :: i
+ real(k) :: qda1(10), qda(10), qval
+
+ qda = (/ 1,2,3,4,5,6,7,8,9,10 /)
+ QDA1 = MOD (1.1_k*(QDA(1)-5.0_k), P=(QDA-2.5_k))
+ DO i = 1, 10
+ QVAL = MOD (1.1_k*(QDA(1)-5.0_k), P=(QDA(i)-2.5_k))
+ if (qval /= qda1(i)) call abort
+ enddo
+end