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 target/83368
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr83364.c
blob
6d38e40ca517de9da970fbec8b8ac174021a12f5
1
/* PR rtl-optimization/83364 */
2
/* { dg-do run } */
3
/* { dg-options "-O -fno-forward-propagate -fno-tree-coalesce-vars -fno-tree-ter" } */
4
5
int
a
;
6
7
static int
__attribute__
((
noinline
,
noclone
))
8
foo
(
unsigned char
c
)
9
{
10
c
<<= (
long long
)
c
!=
a
;
11
c
=
c
<<
7
|
c
>>
1
;
12
return
c
;
13
}
14
15
int
16
main
()
17
{
18
asm
volatile
(
""
: : :
"memory"
);
19
if
(
foo
(
0
) !=
0
)
20
__builtin_abort
();
21
return
0
;
22
}