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
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
powerpc
/
pr16458-1.c
blob
45b8c75c0690084bda301a8e161eaee9cdef1c79
1
/* Test cse'ing of unsigned compares. */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
5
/* { dg-final { scan-assembler-not "cmpw" } } */
6
/* { dg-final { scan-assembler-times "cmplw" 1 } } */
7
8
unsigned int
a
,
b
;
9
10
int
11
foo
(
void
)
12
{
13
if
(
a
==
b
)
return
1
;
14
if
(
a
>
b
)
return
2
;
15
if
(
a
<
b
)
return
3
;
16
if
(
a
!=
b
)
return
4
;
17
return
0
;
18
}