repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.target
/
powerpc
/
980827-1.c
blob
84ba5ee4d5f2c97e116193390666ad959c157b91
1
/* { dg-do run { target rs6000-*-linux* powerpc-*-linux*} } */
2
/* { dg-options -O2 } */
3
4
extern
void
exit
(
int
);
5
extern
void
abort
(
void
);
6
7
double
dval
=
0
;
8
9
void
splat
(
double
d
);
10
11
int
main
(
void
)
12
{
13
splat
(
0
);
14
if
(
dval
==
0
)
15
abort
();
16
exit
(
0
);
17
}
18
19
void
splat
(
double
d
)
20
{
21
union
{
22
double
f
;
23
unsigned int
l
[
2
];
24
}
u
;
25
26
u
.
f
=
d
+
d
;
27
u
.
l
[
1
] |=
1
;
28
asm
volatile
(
"stfd %0,dval@sdarel(13)"
: :
"f"
(
u
.
f
));
29
}