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
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr78546-1.c
blob
9cae5b18858b5c5b2074b7ce6e1e298d1aad9890
1
/* PR rtl-optimization/78546 */
2
/* { dg-do run { target int128 } } */
3
4
typedef
unsigned
__int128 u128
;
5
u128 b
;
6
7
static
inline
u128
8
foo
(
u128 p1
)
9
{
10
p1
+= ~
b
;
11
return
-
p1
;
12
}
13
14
int
15
main
()
16
{
17
asm
volatile
(
""
: : :
"memory"
);
18
u128 x
=
foo
(~
0x7fffffffffffffff
LL
);
19
if
(
x
!=
0x8000000000000001
ULL
)
20
__builtin_abort
();
21
return
0
;
22
}