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 inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr78438.c
blob
3383c322ab42b9a1f5c11119527e075f2cead2a9
1
/* PR target/78438 */
2
3
char
a
=
0
;
4
int
b
=
197412621
;
5
6
__attribute__
((
noinline
,
noclone
))
7
void
foo
()
8
{
9
a
=
0
> (
short
) (
b
>>
11
);
10
}
11
12
int
13
main
()
14
{
15
asm
volatile
(
""
: : :
"memory"
);
16
if
(
__CHAR_BIT__
!=
8
||
sizeof
(
short
) !=
2
||
sizeof
(
int
) <
4
)
17
return
0
;
18
foo
();
19
if
(
a
!=
0
)
20
__builtin_abort
();
21
return
0
;
22
}