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
/
arc
/
sub_n-combine.c
blob
4e227e41fb962d21a1508b6475753174b7afcb89
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-rtl-combine" } */
3
4
int
a
;
5
6
double
b1
() {
7
int
c
=
a
<<
1
;
8
return
1
-
c
;
9
}
10
11
double
b2
() {
12
int
c
=
a
<<
2
;
13
return
1
-
c
;
14
}
15
16
double
b3
() {
17
int
c
=
a
<<
3
;
18
return
1
-
c
;
19
}
20
21
/* { dg-final { scan-rtl-dump-times "\\*sub_n" 3 "combine" } } */