Debian Codegraph @

gcc/testsuite/gfortran.fortran-torture/execute/intrinsic_mvbits.f90

raw
1 ! Test the MVBITS intrinsic subroutine
2 INTEGER*4 :: from, to, result
3 integer*8 :: from8, to8
4
5 DATA from / z'0003FFFC' /
6 DATA to / z'77760000' /
7 DATA result / z'7777FFFE' /
8
9 CALL mvbits(from, 2, 16, to, 1)
10 if (to /= result) STOP 1
11
12 to8 = 0_8
13 from8 = int(b'1011',8)*2_8**32
14 call mvbits (from8, 33, 3, to8, 2)
15 if (to8 /= int(b'10100',8)) STOP 1
16 end