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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr110731.c
blob
7da905d3163f757451b548da3173e86c5f599582
1
/* PR tree-optimization/110731 */
2
/* { dg-do run { target int128 } } */
3
/* { dg-options "-O2" } */
4
5
__int128
6
foo
(
void
)
7
{
8
struct
S
{
__int128 f
:
119
; }
s
= { ((
__int128
) -
18014398509481984
) <<
64
};
9
return
s
.
f
/
2
;
10
}
11
12
int
13
main
()
14
{
15
if
(
foo
() != (((
__int128
) -
9007199254740992
) <<
64
))
16
__builtin_abort
();
17
}