URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [leadz_trailz_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }integer(kind=1) :: i1integer(kind=2) :: i2integer(kind=4) :: i4integer(kind=8) :: i8i1 = -1i2 = -1i4 = -1i8 = -1if (leadz(i1) /= 0) call abortif (leadz(i2) /= 0) call abortif (leadz(i4) /= 0) call abortif (leadz(i8) /= 0) call abortif (trailz(i1) /= 0) call abortif (trailz(i2) /= 0) call abortif (trailz(i4) /= 0) call abortif (trailz(i8) /= 0) call abortif (leadz(-1_1) /= 0) call abortif (leadz(-1_2) /= 0) call abortif (leadz(-1_4) /= 0) call abortif (leadz(-1_8) /= 0) call abortif (trailz(-1_1) /= 0) call abortif (trailz(-1_2) /= 0) call abortif (trailz(-1_4) /= 0) call abortif (trailz(-1_8) /= 0) call aborti1 = -64i2 = -64i4 = -64i8 = -64if (leadz(i1) /= 0) call abortif (leadz(i2) /= 0) call abortif (leadz(i4) /= 0) call abortif (leadz(i8) /= 0) call abortif (trailz(i1) /= 6) call abortif (trailz(i2) /= 6) call abortif (trailz(i4) /= 6) call abortif (trailz(i8) /= 6) call abortif (leadz(-64_1) /= 0) call abortif (leadz(-64_2) /= 0) call abortif (leadz(-64_4) /= 0) call abortif (leadz(-64_8) /= 0) call abortif (trailz(-64_1) /= 6) call abortif (trailz(-64_2) /= 6) call abortif (trailz(-64_4) /= 6) call abortif (trailz(-64_8) /= 6) call aborti1 = -108i2 = -108i4 = -108i8 = -108if (leadz(i1) /= 0) call abortif (leadz(i2) /= 0) call abortif (leadz(i4) /= 0) call abortif (leadz(i8) /= 0) call abortif (trailz(i1) /= 2) call abortif (trailz(i2) /= 2) call abortif (trailz(i4) /= 2) call abortif (trailz(i8) /= 2) call abortif (leadz(-108_1) /= 0) call abortif (leadz(-108_2) /= 0) call abortif (leadz(-108_4) /= 0) call abortif (leadz(-108_8) /= 0) call abortif (trailz(-108_1) /= 2) call abortif (trailz(-108_2) /= 2) call abortif (trailz(-108_4) /= 2) call abortif (trailz(-108_8) /= 2) call aborti1 = 1i2 = 1i4 = 1i8 = 1if (leadz(i1) /= bit_size(i1) - 1) call abortif (leadz(i2) /= bit_size(i2) - 1) call abortif (leadz(i4) /= bit_size(i4) - 1) call abortif (leadz(i8) /= bit_size(i8) - 1) call abortif (trailz(i1) /= 0) call abortif (trailz(i2) /= 0) call abortif (trailz(i4) /= 0) call abortif (trailz(i8) /= 0) call abortif (leadz(1_1) /= bit_size(1_1) - 1) call abortif (leadz(1_2) /= bit_size(1_2) - 1) call abortif (leadz(1_4) /= bit_size(1_4) - 1) call abortif (leadz(1_8) /= bit_size(1_8) - 1) call abortif (trailz(1_1) /= 0) call abortif (trailz(1_2) /= 0) call abortif (trailz(1_4) /= 0) call abortif (trailz(1_8) /= 0) call aborti1 = 64i2 = 64i4 = 64i8 = 64if (leadz(i1) /= 1) call abortif (leadz(i2) /= 9) call abortif (leadz(i4) /= 25) call abortif (leadz(i8) /= 57) call abortif (trailz(i1) /= 6) call abortif (trailz(i2) /= 6) call abortif (trailz(i4) /= 6) call abortif (trailz(i8) /= 6) call abortif (leadz(64_1) /= 1) call abortif (leadz(64_2) /= 9) call abortif (leadz(64_4) /= 25) call abortif (leadz(64_8) /= 57) call abortif (trailz(64_1) /= 6) call abortif (trailz(64_2) /= 6) call abortif (trailz(64_4) /= 6) call abortif (trailz(64_8) /= 6) call abortend
