projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
middle-end/98773 - always sign extend CHREC_RIGHT
[gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr98773.c
1
/* { dg-do run } */
2
3
char
a
[
128
];
4
5
void
__attribute__
((
noipa
))
6
foo
()
7
{
8
for
(
unsigned
i
=
27
;
i
>=
5
; --
i
)
9
a
[
i
] =
a
[
i
-
5
];
10
}
11
12
int
main
()
13
{
14
__builtin_memcpy
(
a
,
"Hello World"
,
sizeof
(
"Hello World"
));
15
foo
();
16
if
(
__builtin_memcmp
(
a
+
5
,
"Hello World"
,
sizeof
(
"Hello World"
)) !=
0
)
17
__builtin_abort
();
18
return
0
;
19
}