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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr104459.c
blob
de8a643d9e218f1c4dbb53d59727bee1267b8f51
1
/* PR rtl-optimization/104459 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -funswitch-loops -fno-tree-dce -fcompare-debug -w" } */
4
5
void
6
foo
(
int
x
,
int
y
)
7
{
8
unsigned int
a
;
9
10
for
(;;)
11
{
12
short int
*
p
= (
short int
*) &
x
;
13
unsigned int
q
=
0
;
14
15
a
/=
2
;
16
if
(
a
)
17
{
18
q
-=
y
;
19
while
(
q
)
20
;
21
}
22
23
if
(
x
)
24
{
25
for
(
q
=
0
;
q
!=
1
;
q
+=
2
)
26
{
27
unsigned int
n
;
28
29
n
= *
p
?
0
:
q
;
30
y
+=
n
<
1
;
31
32
n
=
a
|| *
p
;
33
if
(
n
%
x
==
0
)
34
y
/=
x
;
35
}
36
}
37
}
38
}