Commit e1c463c4 by Jerry DeLisle

ibits.f90: New test.

2007-01-03  Steven G. Kargl  <kargls@comcast.net>

	* gfortran.dg/ibits.f90: New test.

From-SVN: r120380
parent b17a1b93
2006-01-03 Zdenek Dvorak <dvorakz@suse.cz> 2007-01-03 Steven G. Kargl <kargls@comcast.net>
* gfortran.dg/ibits.f90: New test.
2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
* gcc.dg/tree-ssa/update-unroll-1.c: New test. * gcc.dg/tree-ssa/update-unroll-1.c: New test.
* gcc.dg/tree-ssa/update-unswitch-1.c: New test. * gcc.dg/tree-ssa/update-unswitch-1.c: New test.
! { dg-do run }
! Test that the mask is properly converted to the kind type of j in ibits.
program ibits_test
implicit none
integer(8), parameter :: n = z'00000000FFFFFFFF'
integer(8) i,j,k,m
j = 1
do i=1,70
j = ishft(j,1) + 1
k = ibits(j, 0, 32)
m = iand(j,n)
if (k /= m) call abort
end do
end program ibits_test
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