OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [mvbits_2.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! Test for the MVBITS subroutine
2
! This used to fail on big-endian architectures (PR 32357)
3
! { dg-do run }
4
  integer(kind=8) :: i8 = 0
5
  integer(kind=4) :: i4 = 0
6
  integer(kind=2) :: i2 = 0
7
  integer(kind=1) :: i1 = 0
8
  call mvbits (1_1, 0, 8, i1, 0)
9
  if (i1 /= 1) call abort
10
  call mvbits (1_2, 0, 16, i2, 0)
11
  if (i2 /= 1) call abort
12
  call mvbits (1_4, 0, 16, i4, 0)
13
  if (i4 /= 1) call abort
14
  call mvbits (1_8, 0, 16, i8, 0)
15
  if (i8 /= 1) call abort
16
  end

powered by: WebSVN 2.1.0

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