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
/
tree-ssa
/
pr93156.c
blob
b8c2af3ed484e1736e39a26588fc370c80be3c87
1
/* PR tree-optimization/93156 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-optimized" } */
4
/* { dg-final { scan-tree-dump-times "return 0;" 3 "optimized" } } */
5
6
int
7
foo
(
int
x
)
8
{
9
return
(
x
*
x
) &
2
;
10
}
11
12
unsigned long long
13
bar
(
unsigned long long
x
)
14
{
15
return
(
x
*
x
) &
2
;
16
}
17
18
int
19
baz
(
int
x
)
20
{
21
x
&= -
2
;
22
return
(
x
*
x
) &
3
;
23
}