OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [intrinsic_mvbits.f90] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 303 jeremybenn
! 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) CALL abort()
11
 
12
to8 = 0_8
13
from8 = b'1011'*2_8**32
14
call mvbits (from8, 33, 3, to8, 2)
15
if (to8 /= b'10100') call abort
16
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.