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
2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr46491.c
blob
82f704c266f74fd4f3bd4dd22ed85fca0a36f630
1
/* PR tree-optimization/46491 */
2
/* { dg-do run } */
3
/* { dg-options "-O2" } */
4
5
extern
void
abort
(
void
);
6
7
__attribute__
((
noinline
))
int
8
foo
(
int
*
p
)
9
{
10
int
r
;
11
asm
(
"movl $6, (%1)
\n\t
xorl %0, %0"
:
"=r"
(
r
) :
"r"
(
p
) :
"memory"
);
12
return
r
;
13
}
14
15
int
16
main
(
void
)
17
{
18
int
p
=
8
;
19
if
((
foo
(&
p
) ? :
p
) !=
6
)
20
abort
();
21
return
0
;
22
}