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
libgomp: Document 'GOMP_teams4'
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
aarch64
/
builtin_saddll.c
blob
126a52671f19170e1c258f706135459765ae6ca7
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
extern
void
overflow_handler
();
5
6
long long
overflow_add
(
long long
x
,
long long
y
)
7
{
8
long long
r
;
9
10
int
ovr
=
__builtin_saddll_overflow
(
x
,
y
, &
r
);
11
if
(
ovr
)
12
overflow_handler
();
13
14
return
r
;
15
}
16
17
/* { dg-final { scan-assembler "adds" } } */
18