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.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
960909-1.c
blob
de1ed9339781c21a26eefa1c70d6570bd59e36ac
1
int
2
ffs
(
x
)
3
int
x
;
4
{
5
int
bit
,
mask
;
6
7
if
(
x
==
0
)
8
return
0
;
9
10
for
(
bit
=
1
,
mask
=
1
; !(
x
&
mask
);
bit
++,
mask
<<=
1
)
11
;
12
13
return
bit
;
14
}
15
16
f
(
x
)
17
int
x
;
18
{
19
int
y
;
20
y
=
ffs
(
x
) -
1
;
21
if
(
y
<
0
)
22
abort
();
23
}
24
25
main
()
26
{
27
f
(
1
);
28
exit
(
0
);
29
}