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
c: Implement C23 nullptr (N3042)
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr91720.c
blob
4abdace94da1f2288448a42373b360f4f28e72cd
1
/* PR rtl-optimization/91720 */
2
/* { dg-do run } */
3
/* { dg-options "-Og -fno-forward-propagate -frerun-cse-after-loop -fno-tree-fre" } */
4
5
unsigned
a
,
b
;
6
7
int
8
main
()
9
{
10
#if __CHAR_BIT__ == 8
11
unsigned
c
=
1
;
12
unsigned long long
d
=
0
;
13
unsigned char
e
=
0
;
14
e
=
__builtin_sub_overflow
(
d
,
e
, &
a
) ?
0
:
0x80
;
15
e
=
e
<<
7
|
e
>>
c
;
16
__builtin_memmove
(&
d
, &
a
,
2
);
17
b
=
e
;
18
if
(
b
!=
0x40
)
19
__builtin_abort
();
20
#endif
21
return
0
;
22
}