repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
vmx
/
3b-01.c
blob
e8feec481e0d9bff5cdec5f20849da768c7d4f98
1
#include
"harness.h"
2
3
/* Simple use of a overloaded generic vector intrinsic. */
4
5
vector
unsigned int
6
f
(
vector
unsigned int
a
,
vector
unsigned int
b
)
7
{
8
return
vec_subs
(
a
,
b
);
9
}
10
11
static void
test
()
12
{
13
static
vector
unsigned int
zero
;
14
check
(
vec_all_eq
(
f
(((
vector
unsigned int
){
2
,
4
,
6
,
8
}),
15
((
vector
unsigned int
){
2
,
4
,
6
,
8
})),
16
zero
),
17
"f"
);
18
}