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
* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr78445.c
blob
bb5327b9f705b83b305618feacdcf60f3544ccbc
1
/* PR tree-optimization/78445 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -ftree-loop-if-convert -ftree-vectorize" } */
4
/* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */
5
6
int
a
;
7
8
void
9
foo
(
int
x
,
int
*
y
)
10
{
11
while
(
a
!=
0
)
12
if
(
x
!=
0
)
13
{
14
*
y
=
a
;
15
x
= *
y
;
16
}
17
else
18
x
=
a
;
19
}