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
2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
movcond_restrict_it.c
blob
f1f9cfa351bb8c2732c3dced30d8bc17f0aa573d
1
/* { dg-do run } */
2
/* { dg-require-effective-target arm_thumb2_ok } */
3
/* { dg-options "-mthumb -O3 -mrestrict-it" } */
4
5
int
a
;
6
7
__attribute__
((
noinline
,
noclone
))
int
8
fn1
(
int
c
,
int
d
)
9
{
10
if
(
c
>
d
)
11
a
=
1
;
12
else
13
a
= -
1
;
14
return
a
;
15
}
16
17
int
18
main
(
void
)
19
{
20
if
(
fn1
(
4
,
5
) != -
1
)
21
__builtin_abort
();
22
23
if
(
fn1
(
5
,
4
) !=
1
)
24
__builtin_abort
();
25
26
return
0
;
27
}