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
/
torture
/
pr100672.c
blob
cc62e71f9a32fdc11c00f106f6d242d6708dd1c0
1
/* { dg-do run } */
2
/* { dg-additional-options "-w -Wno-psabi" } */
3
4
typedef
long long
__attribute__
((
__vector_size__
(
4
*
sizeof
(
long long
))))
V
;
5
6
V
7
foo
(
V v
)
8
{
9
return
-(
v
>>
1
);
10
}
11
12
int
13
main
(
void
)
14
{
15
V v
=
foo
((
V
) { -
2
, -
4
, -
6
, -
8
});
16
if
(
v
[
0
] !=
1
||
v
[
1
] !=
2
||
v
[
2
] !=
3
||
v
[
3
] !=
4
)
17
__builtin_abort
();
18
return
0
;
19
}