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
Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr28230.c
blob
5ecc0c716bae2c4598988eee561e93b6cabb33f3
1
/* { dg-do run } */
2
/* { dg-options "-fwrapv" } */
3
4
void
foo
(
unsigned long long
bb
,
unsigned short
tn
,
unsigned
e
,
unsigned
*
w
);
5
void
foo
(
unsigned long long
bb
,
unsigned short
tn
,
unsigned
e
,
unsigned
*
w
)
6
{
7
unsigned
n
=
tn
+
bb
;
8
do
{
9
e
= (
e
>
n
) ?
e
: *
w
;
10
n
-= (
e
>
n
) ?
n
:
e
;
11
if
(*
w
)
12
*
w
=
0
;
13
}
while
(
n
);
14
}
15
int
main
()
16
{
17
unsigned
w
=
0
;
18
foo
(
0
,
0
,
0
, &
w
);
19
return
0
;
20
}