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
[gcc]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
aarch64
/
subs.c
blob
2bf197585dd5fffdeeee8f281b1798d77154afb5
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 "subs\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 "subs\tx\[0-9\]" } } */
28
zz
=
l
;
29
return
25
;
30
}