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
/
fold-minus-2.c
blob
6501f2f92642cdd16f19e6fe9f392caa7bd126ff
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-cddce1" } */
3
4
int
5
fn1
(
int
a
,
int
b
)
6
{
7
int
tem1
=
a
|
b
;
8
int
tem2
=
a
^
b
;
9
return
tem1
-
tem2
;
10
}
11
12
int
13
fn2
(
int
a
,
int
b
)
14
{
15
int
tem1
=
b
|
a
;
16
int
tem2
=
a
^
b
;
17
return
tem1
-
tem2
;
18
}
19
20
int
21
fn3
(
int
a
,
int
b
)
22
{
23
int
tem1
=
a
|
b
;
24
int
tem2
=
b
^
a
;
25
return
tem1
-
tem2
;
26
}
27
28
int
29
fn4
(
int
a
,
int
b
)
30
{
31
int
tem1
=
b
|
a
;
32
int
tem2
=
b
^
a
;
33
return
tem1
-
tem2
;
34
}
35
36
/* { dg-final { scan-tree-dump-not " \\^ " "cddce1" } } */
37
/* { dg-final { scan-tree-dump-not " \\| " "cddce1" } } */