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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [boz_1.f90] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! Test the boz handling
3
program boz
4
 
5
   implicit none
6
 
7
   integer(1), parameter :: b1 = b'00000001'
8
   integer(2), parameter :: b2 = b'0101010110101010'
9
   integer(4), parameter :: b4 = b'01110000111100001111000011110000'
10
   integer(8), parameter :: &
11
   &  b8 = b'0111000011110000111100001111000011110000111100001111000011110000'
12
 
13
   integer(1), parameter :: o1 = o'12'
14
   integer(2), parameter :: o2 = o'4321'
15
   integer(4), parameter :: o4 = o'43210765'
16
   integer(8), parameter :: o8 = o'1234567076543210'
17
 
18
   integer(1), parameter :: z1 = z'a'
19
   integer(2), parameter :: z2 = z'ab'
20
   integer(4), parameter :: z4 = z'dead'
21
   integer(8), parameter :: z8 = z'deadbeef'
22
 
23
   if (z1 /= 10_1) call abort
24
   if (z2 /= 171_2) call abort
25
   if (z4 /= 57005_4) call abort
26
   if (z8 /= 3735928559_8) call abort
27
 
28
   if (b1 /= 1_1) call abort
29
   if (b2 /= 21930_2) call abort
30
   if (b4 /= 1894838512_4) call abort
31
   if (b8 /= 8138269444283625712_8) call abort
32
 
33
   if (o1 /= 10_1) call abort
34
   if (o2 /= 2257_2) call abort
35
   if (o4 /= 9245173_4) call abort
36
   if (o8 /= 45954958542472_8) call abort
37
 
38
end program boz

powered by: WebSVN 2.1.0

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