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
PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr85169.c
blob
a21ed9b7264c141d38620c1623c93209fed4d724
1
/* PR target/85169 */
2
3
typedef
char
V
__attribute__
((
vector_size
(
64
)));
4
5
static void
__attribute__
((
noipa
))
6
foo
(
V
*
p
)
7
{
8
V v
= *
p
;
9
v
[
63
] =
1
;
10
*
p
=
v
;
11
}
12
13
int
14
main
()
15
{
16
V v
= (
V
) { };
17
foo
(&
v
);
18
for
(
unsigned
i
=
0
;
i
<
64
;
i
++)
19
if
(
v
[
i
] != (
i
==
63
))
20
__builtin_abort
();
21
return
0
;
22
}