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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
gcc.target
/
i386
/
signbit-3.c
blob
a08ca498142f3a9851be9ffa43e2e9ba096a455c
1
/* PR optimization/8746 */
2
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-options "-O1 -mtune=i586" } */
5
6
extern
void
abort
(
void
);
7
8
volatile
int
j
;
9
10
void
f0
() {
j
=
0
; }
11
void
f1
() {
j
=
1
; }
12
13
int
foo
(
int
x
)
14
{
15
if
((
short int
)(
x
&
0x8000
) > (
short int
)
0
)
16
{
17
f0
();
18
return
0
;
19
}
20
else
21
{
22
f1
();
23
return
1
;
24
}
25
}
26
27
int
main
(
void
)
28
{
29
if
(
foo
(
0x8000
) !=
1
)
30
abort
();
31
32
return
0
;
33
}