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
/
vmx
/
7d-02.c
blob
6294cc99efcd3f07ad702accc679fca925dbb7d0
1
/* { dg-do compile } */
2
#include <altivec.h>
3
extern
vector
unsigned char
a
[];
4
5
void
f
6
(
vector
unsigned char
v
,
vector
unsigned char
*
p
,
int
i
,
int
b
)
7
{
8
if
(
b
)
9
p
[
i
] =
v
;
10
else
11
vec_st
(
v
,
i
*
16
,
p
);
12
}
13
14
void
g
15
(
vector
unsigned char
v
,
int
i
,
int
b
)
16
{
17
if
(
b
)
18
a
[
i
] =
v
;
19
else
20
vec_st
(
v
,
i
*
16
,
a
);
21
}