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
* gcc.dg/const-elim-1.c: xfail for xtensa.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
i386-signbit-1.c
blob
8b8866e92aa228ff1154ebe3fca01e24668cbf32
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 char
r0
;
8
9
int
foo
(
int
x
)
10
{
11
unsigned char
r
=
x
&
0xf0
;
12
13
if
(!(
r
&
0x80
))
14
{
15
r0
=
r
;
16
return
0
;
17
}
18
else
19
return
1
;
20
}
21
22
int
main
(
void
)
23
{
24
if
(
foo
(
0x80
) !=
1
)
25
abort
();
26
27
return
0
;
28
}