repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
signbit-2.c
blob
c09bba3b8b35be90d4a0aacde75586503bda3bac
1
/* PR optimization/8746 */
2
/* { dg-do run } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-options "-O1 -mtune=i586" } */
5
6
extern
void
abort
(
void
);
7
8
unsigned short
r0
;
9
10
int
foo
(
int
x
)
11
{
12
unsigned short
r
=
x
&
0xf000
;
13
14
if
(!(
r
&
0x8000
))
15
{
16
r0
=
r
;
17
return
0
;
18
}
19
else
20
return
1
;
21
}
22
23
int
main
(
void
)
24
{
25
if
(
foo
(
0x8000
) !=
1
)
26
abort
();
27
28
return
0
;
29
}