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
svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
i386-signbit-2.c
blob
5687d857a0776abacc0b13a9fb0aa4d6ff2ded19
1
/* PR optimization/8746 */
2
/* { dg-do run { target i?86-*-* } } */
3
/* { dg-options "-O1 -mtune=i586" } */
4
5
extern
void
abort
(
void
);
6
7
unsigned short
r0
;
8
9
int
foo
(
int
x
)
10
{
11
unsigned short
r
=
x
&
0xf000
;
12
13
if
(!(
r
&
0x8000
))
14
{
15
r0
=
r
;
16
return
0
;
17
}
18
else
19
return
1
;
20
}
21
22
int
main
(
void
)
23
{
24
if
(
foo
(
0x8000
) !=
1
)
25
abort
();
26
27
return
0
;
28
}