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
2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
thumb2-cmpneg2add-2.c
blob
358bc6e143cf7dacbe4f92db331da7bf37d91941
1
/* Use ADDS with a scratch, rather than CMN */
2
/* { dg-options "-mthumb -Os" } */
3
/* { dg-require-effective-target arm_thumb2_ok } */
4
/* { dg-final { scan-assembler "adds" } } */
5
/* { dg-final { scan-assembler-not "cmn" } } */
6
7
void
foo1
(
int
);
8
void
bar5
(
int
x
)
9
{
10
if
(
x
== -
1
)
11
foo1
(
x
);
12
}