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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr42889.c
blob
b518b2057f12e2004a7479b428e37ee8b5f0ec66
1
/* PR rtl-optimization/42889 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -fgcse -fcompare-debug" } */
4
/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
5
6
extern
int
A
[],
B
[];
7
8
int
9
foo
(
int
x
,
int
c
,
int
i
)
10
{
11
if
(
A
[
i
] &&
B
[
i
])
12
x
=
x
% ((
c
&
4
) ?
8
:
4
);
13
return
x
;
14
}