repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20051110-1.c
blob
9fa3df8474f3195424bb3cbffd9c49dc9fe23f13
1
void
add_unwind_adjustsp
(
long
);
2
void
abort
(
void
);
3
4
unsigned char
bytes
[
5
];
5
6
void
7
add_unwind_adjustsp
(
long
offset
)
8
{
9
int
n
;
10
unsigned long
o
;
11
12
o
= (
long
) ((
offset
-
0x204
) >>
2
);
13
14
n
=
0
;
15
while
(
o
)
16
{
17
bytes
[
n
] =
o
&
0x7f
;
18
o
>>=
7
;
19
if
(
o
)
20
bytes
[
n
] |=
0x80
;
21
n
++;
22
}
23
}
24
25
int
main
(
void
)
26
{
27
add_unwind_adjustsp
(
4132
);
28
if
(
bytes
[
0
] !=
0x88
||
bytes
[
1
] !=
0x07
)
29
abort
();
30
return
0
;
31
}