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
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
i386-signbit-1.c
blob
57c1f5f2cb3ad1d4a062c3290c7172442f3b7320
1
/* PR optimization/8746 */
2
/* { dg-do run { target i?86-*-* } } */
3
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
4
/* { dg-options "-O1 -mtune=i586" } */
5
6
extern
void
abort
(
void
);
7
8
unsigned char
r0
;
9
10
int
foo
(
int
x
)
11
{
12
unsigned char
r
=
x
&
0xf0
;
13
14
if
(!(
r
&
0x80
))
15
{
16
r0
=
r
;
17
return
0
;
18
}
19
else
20
return
1
;
21
}
22
23
int
main
(
void
)
24
{
25
if
(
foo
(
0x80
) !=
1
)
26
abort
();
27
28
return
0
;
29
}