OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR rtl-optimization/40861
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
vmx
/
3b-01.c
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
}