Commit 9e941b4a by Tobias Schlüter Committed by Tobias Schlüter

intrinsic_mvbits.f90, ishft.f90: Add more tests.

* gfortran.fortran-torture/execute/intrinsic_mvbits.f90,
gfortran.dg/ishft.f90: Add more tests. Add dg-warning in followup
commit.

From-SVN: r88695
parent 21213b4c
2004-10-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> 2004-10-07 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.fortran-torture/execute/intrinsic_mvbits.f90, * gfortran.fortran-torture/execute/intrinsic_mvbits.f90,
gfortran.dg/ishft.f90: Add more tests. gfortran.dg/ishft.f90: Add more tests. Add dg-warning in followup
commit.
2004-10-07 Andrew Pinski <pinskia@physics.uc.edu> 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
......
...@@ -25,7 +25,7 @@ if (ishft (1_8, 0) /= 1) call abort ...@@ -25,7 +25,7 @@ if (ishft (1_8, 0) /= 1) call abort
if (ishft (1_8, 1) /= 2) call abort if (ishft (1_8, 1) /= 2) call abort
if (ishft (3_8, 1) /= 6) call abort if (ishft (3_8, 1) /= 6) call abort
if (ishft (-1_8, 1) /= -2) call abort if (ishft (-1_8, 1) /= -2) call abort
if (ishft (-1_8, -60) /= z'F'_8) call abort if (ishft (-1_8, -60) /= z'F'_8) call abort ! { dg-warning "" "" }
if (ishftc (1_1, 0) /= 1) call abort if (ishftc (1_1, 0) /= 1) call abort
if (ishftc (1_1, 1) /= 2) call abort if (ishftc (1_1, 1) /= 2) call abort
......
...@@ -10,6 +10,6 @@ CALL mvbits(from, 2, 16, to, 1) ...@@ -10,6 +10,6 @@ CALL mvbits(from, 2, 16, to, 1)
if (to /= result) CALL abort() if (to /= result) CALL abort()
to8 = 0 to8 = 0
call mvbits (b'1011'_8*2_8**32, 33, 3, to8, 2) call mvbits (b'1011'_8*2_8**32, 33, 3, to8, 2) ! { dg-warning "" "" }
if (to8 /= b'10100'_8) call abort if (to8 /= b'10100'_8) call abort ! { dg-warning "" "" }
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment