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
PR target/83368
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
fold-cstvecshift.c
blob
1307d059a5041730e8d9a8f92d1b0a846d07601b
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-ccp1" } */
3
4
typedef
int
vec
__attribute__
((
vector_size
(
4
*
sizeof
(
int
))));
5
6
void
f
(
vec
*
r
)
7
{
8
vec a
= {
2
,
3
,
4
,
5
};
9
*
r
= (
a
<<
2
) >>
1
;
10
}
11
12
/* { dg-final { scan-tree-dump "{ 4, 6, 8, 10 }" "ccp1"} } */