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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [pr48622_0.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-lto-do link } */
2
/* { dg-lto-options {{-O -flto -finline-small-functions -fno-early-inlining}} } */
3
 
4
void abort(void);
5
void exit(int);
6
 
7
typedef unsigned int u8 __attribute__ ((mode (QI)));
8
 
9
u8
10
ashift_qi_0 (u8 n)
11
{
12
}
13
 
14
u8
15
ashift_qi_2 (u8 n)
16
{
17
}
18
 
19
u8
20
ashift_qi_3 (u8 n)
21
{
22
}
23
 
24
u8
25
ashift_qi_4 (u8 n)
26
{
27
}
28
 
29
u8
30
ashift_qi_5 (u8 n)
31
{
32
}
33
 
34
u8
35
ashift_qi_6 (u8 n)
36
{
37
}
38
 
39
u8
40
ashift_qi_7 (u8 n)
41
{
42
}
43
 
44
u8
45
lshiftrt_qi_0 (u8 n)
46
{
47
}
48
 
49
u8
50
lshiftrt_qi_4 (u8 n)
51
{
52
}
53
 
54
u8
55
lshiftrt_qi_5 (u8 n)
56
{
57
}
58
 
59
u8
60
lshiftrt_qi_7 (u8 n)
61
{
62
}
63
 
64
int
65
main ()
66
{
67
  if (ashift_qi_0 (0xff) != (u8) ((u8) 0xff << 0))
68
    abort ();
69
  if (ashift_qi_1 (0xff) != (u8) ((u8) 0xff << 1))
70
    abort ();
71
  if (ashift_qi_2 (0xff) != (u8) ((u8) 0xff << 2))
72
    abort ();
73
  if (ashift_qi_3 (0xff) != (u8) ((u8) 0xff << 3))
74
    abort ();
75
  if (ashift_qi_4 (0xff) != (u8) ((u8) 0xff << 4))
76
    abort ();
77
  if (ashift_qi_5 (0xff) != (u8) ((u8) 0xff << 5))
78
    abort ();
79
  if (ashift_qi_6 (0xff) != (u8) ((u8) 0xff << 6))
80
    abort ();
81
  if (ashift_qi_7 (0xff) != (u8) ((u8) 0xff << 7))
82
    abort ();
83
  if (lshiftrt_qi_0 (0xff) != (u8) ((u8) 0xff >> 0))
84
    abort ();
85
  if (lshiftrt_qi_4 (0xff) != (u8) ((u8) 0xff >> 4))
86
    abort ();
87
  if (lshiftrt_qi_5 (0xff) != (u8) ((u8) 0xff >> 5))
88
    abort ();
89
  if (lshiftrt_qi_7 (0xff) != (u8) ((u8) 0xff >> 7))
90
    abort ();
91
  exit (0);
92
}
93
 

powered by: WebSVN 2.1.0

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