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
/
vec-set.c
blob
fa11c47a122b96301154c7d7f6546776b1ab6f51
1
#include
"harness.h"
2
3
vector
short
4
vec_set
(
short
m
)
5
{
6
return
(
vector
short
){
m
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
7
}
8
9
static void
test
()
10
{
11
check
(
vec_all_eq
(
vec_set
(
7
),
12
((
vector
short
){
7
,
0
,
0
,
0
,
0
,
0
,
0
,
0
})),
13
"vec_set"
);
14
}