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
/
pr79388.c
blob
07a75c9ae7df08f924d982dbe6086460b946fedf
1
/* PR rtl-optimization/79388 */
2
/* { dg-additional-options "-fno-tree-coalesce-vars" } */
3
4
unsigned int
a
,
c
;
5
6
__attribute__
((
noinline
,
noclone
))
unsigned int
7
foo
(
unsigned int
p
)
8
{
9
p
|=
1
;
10
p
&=
0xfffe
;
11
p
%=
0xffff
;
12
c
=
p
;
13
return
a
+
p
;
14
}
15
16
int
17
main
(
void
)
18
{
19
int
x
=
foo
(
6
);
20
if
(
x
!=
6
)
21
__builtin_abort
();
22
return
0
;
23
}