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
[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
fold-abs-5.c
blob
4a892afe8ea9e4cf71a88c9b07b032fa3e266b7a
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-original" } */
3
4
int
test
(
int
a
,
int
b
,
int
sum
)
5
{
6
sum
+= ((
a
-
b
) >
0
? (
a
-
b
) : -(
a
-
b
));
7
return
sum
;
8
}
9
10
/* { dg-final { scan-tree-dump "ABS" "original" } } */