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-01-25 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
rl78
/
test_addsi3_internal.c
blob
575f11600547547baa5d83f85f107d5b7346bbe2
1
/* { dg-do compile } */
2
/* { dg-options "-Os" } */
3
long
l
,
v
;
4
5
void
test1
()
6
{
7
l
++;
8
}
9
10
void
test2
()
11
{
12
l
--;
13
}
14
15
void
test3
()
16
{
17
l
+=
10
;
18
}
19
20
long
test4
()
21
{
22
return
l
+
v
;
23
}
24
25
/* { dg-final { scan-assembler-not "addw ax, #0" } } */
26
/* { dg-final { scan-assembler-not "addw ax, #-1" } } */
27
/* { dg-final { scan-assembler "decw ax" } } */