URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
693 |
jeremybenn |
// PR c++/5964
|
2 |
|
|
// This testcase failed to link on sparc -m64 -O0, because instruction
|
3 |
|
|
// lengths were incorrectly computed
|
4 |
|
|
// { dg-do link }
|
5 |
|
|
// { dg-options "-O0" }
|
6 |
|
|
|
7 |
|
|
#define makecode for (int i = 1; i < 1000; ++i) i *= 3
|
8 |
|
|
#define muchcode \
|
9 |
|
|
makecode; makecode; makecode; makecode; makecode; makecode; \
|
10 |
|
|
makecode; makecode; makecode; makecode; makecode; makecode; \
|
11 |
|
|
makecode; makecode; makecode; makecode; makecode; makecode; \
|
12 |
|
|
makecode; makecode; makecode; makecode; makecode; makecode
|
13 |
|
|
|
14 |
|
|
#define verymuchcode \
|
15 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
16 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
17 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
18 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
19 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
20 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
21 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
22 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
23 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
24 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
25 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
26 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
|
27 |
|
|
muchcode; muchcode; muchcode; muchcode; muchcode; muchcode
|
28 |
|
|
|
29 |
|
|
#ifdef __mips
|
30 |
|
|
/* See PR 51931. */
|
31 |
|
|
__attribute__((nomips16))
|
32 |
|
|
#endif
|
33 |
|
|
int
|
34 |
|
|
main (int argc, char **argv)
|
35 |
|
|
{
|
36 |
|
|
loop:
|
37 |
|
|
verymuchcode;
|
38 |
|
|
delete[] argv;
|
39 |
|
|
goto loop;
|
40 |
|
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.