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.target
/
aarch64
/
adds.c
blob
aa423210dec504fa0a2d77237b74b02951bf6dc2
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
int
z
;
5
int
6
foo
(
int
x
,
int
y
)
7
{
8
int
l
=
x
+
y
;
9
if
(
l
==
0
)
10
return
5
;
11
12
/* { dg-final { scan-assembler "adds\tw\[0-9\]" } } */
13
z
=
l
;
14
return
25
;
15
}
16
17
typedef
long long
s64
;
18
19
s64 zz
;
20
s64
21
foo2
(
s64 x
,
s64 y
)
22
{
23
s64 l
=
x
+
y
;
24
if
(
l
<
0
)
25
return
5
;
26
27
/* { dg-final { scan-assembler "adds\tx\[0-9\]" } } */
28
zz
=
l
;
29
return
25
;
30
}