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
2007-09-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
spu2vmx-1.C
blob
becd1dcabeb4bfb7dafdb3bbb30a85d16939705b
1
/* { dg-do compile { target powerpc*-*-* } } */
2
/* { dg-require-effective-target powerpc_altivec_ok } */
3
/* { dg-options "-maltivec" } */
4
5
#include <altivec.h>
6
#include <spu2vmx.h>
7
8
vec_uint4 f(vec_uint4 a, vec_uint4 b)
9
{
10
return spu_add(a, b);
11
}
12
vec_float4 f(vec_float4 a, vec_float4 b)
13
{
14
return spu_add(a, b);
15
}