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
Warn pointer to signed integer cast for ilp32
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
vrp28.c
blob
6b2a1fd6b75ea7ebc87b1cda9b958b969a39f132
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-vrp1" } */
3
4
int
f
(
_Bool a
)
5
{
6
int
t
=
a
;
7
if
(
t
!=
2
)
8
return
0
;
9
return
1
;
10
}
11
12
int
f1
(
unsigned char
a
)
13
{
14
int
t
=
a
;
15
if
(
t
!=
256
)
16
return
0
;
17
return
1
;
18
}
19
20
int
f3
(
unsigned char
c
)
21
{
22
int
i
=
c
;
23
if
(
i
<
0
||
i
>
255
)
24
return
-
1
;
25
else
26
return
0
;
27
}
28
29
/* { dg-final { scan-tree-dump-times "if " 0 "vrp1" } } * /
30
/* { dg-final { cleanup-tree-dump "vrp1" } } */
31
32