Commit ae18f176 by Steven G. Kargl

ishft.f90: Remove kind suffix from BOZ constant

* gfortran.dg/ishft.f90:  Remove kind suffix from BOZ constant
* gfortran.fortran-torture/execute/intrinsic_mvbits.f90: ditto

From-SVN: r95644
parent f4e7375a
2005-02-27 Steven G. Kargl <kargl@gcc.gnu.org>
* gfortran.dg/ishft.f90: Remove kind suffix from BOZ constant
* gfortran.fortran-torture/execute/intrinsic_mvbits.f90: ditto
2005-02-27 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR libfortran/20101
......
......@@ -25,7 +25,7 @@ if (ishft (1_8, 0) /= 1) call abort
if (ishft (1_8, 1) /= 2) call abort
if (ishft (3_8, 1) /= 6) call abort
if (ishft (-1_8, 1) /= -2) call abort
if (ishft (-1_8, -60) /= z'F'_8) call abort ! { dg-warning "" "" }
if (ishft (-1_8, -60) /= z'F') call abort
if (ishftc (1_1, 0) /= 1) call abort
if (ishftc (1_1, 1) /= 2) call abort
......
! Test the MVBITS intrinsic subroutine
INTEGER*4 :: from, to, result
integer*8 :: to8
integer*8 :: from8, to8
DATA from / z'0003FFFC' /
DATA to / z'77760000' /
......@@ -9,7 +9,8 @@ DATA result / z'7777FFFE' /
CALL mvbits(from, 2, 16, to, 1)
if (to /= result) CALL abort()
to8 = 0
call mvbits (b'1011'_8*2_8**32, 33, 3, to8, 2) ! { dg-warning "" "" }
if (to8 /= b'10100'_8) call abort ! { dg-warning "" "" }
to8 = 0_8
from8 = b'1011'*2_8**32
call mvbits (from8, 33, 3, to8, 2)
if (to8 /= b'10100') call abort
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