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
/
pr103181.c
blob
6bc705ab52eb06107b5c12bcd8c3e921f34dd68a
1
/* { dg-do run } */
2
3
typedef
unsigned char
__attribute__
((
__vector_size__
(
2
)))
U
;
4
typedef
unsigned short
S
;
5
typedef
unsigned int
__attribute__
((
__vector_size__
(
64
)))
V
;
6
7
V v
;
8
U a
,
b
,
c
;
9
10
U
11
foo
(
S s
)
12
{
13
v
+=
__builtin_bswap16
(
s
) || (
S
) (
a
/ ((
U
){
3
,
0
}));
14
return
b
+
c
;
15
}
16
17
int
18
main
(
void
)
19
{
20
U x
=
foo
(
4
);
21
if
(
x
[
0
] ||
x
[
1
])
22
__builtin_abort
();
23
return
0
;
24
}