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.dg
/
fold-xornot-1.c
blob
167cc1f34c1a90632a16b22971e28152445ac774
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-original" } */
3
4
int
foo
(
int
x
)
5
{
6
return
~(
x
^
4
);
7
}
8
9
int
bar
(
int
y
)
10
{
11
return
~
y
^
4
;
12
}
13
14
/* { dg-final { scan-tree-dump-times "x \\^ -5" 1 "original" } } */
15
/* { dg-final { scan-tree-dump-times "y \\^ -5" 1 "original" } } */