projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR tree-optimization/41442 (missed optimization for boolean expression)
[gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr41442.c
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
typedef
struct
LINK link
;
5
struct
LINK
6
{
7
link
*
next
;
8
};
9
10
int
haha
(
link
*
p1
,
link
*
p2
)
11
{
12
if
((
p1
->
next
&& !
p2
->
next
) ||
p2
->
next
)
13
return
0
;
14
15
return
1
;
16
}
17
18
/* { dg-final { scan-assembler-times "test|cmp" 2 } } */