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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr51408.c
blob
2cc5cf967b628f611448e87fb90945227d097e01
1
/* This testcase used to fail because of a bug in
2
arm.md:*minmax_arithsi. */
3
4
/* { dg-do run } */
5
/* { dg-options "-O1" } */
6
7
extern
void
abort
(
void
);
8
9
int
__attribute__
((
noinline
))
10
foo
(
int
a
,
int
b
)
11
{
12
int
max
= (
b
>
0
) ?
b
:
0
;
13
return
max
-
a
;
14
}
15
16
int
17
main
(
void
)
18
{
19
if
(
foo
(
3
, -
1
) != -
3
)
20
abort
();
21
return
0
;
22
}