summaryrefslogtreecommitdiff
path: root/TestPrograms/test_ppc_altivec.cpp
blob: b28a39dd325c45722c8a29526db33239f4f3e0d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#define GNUC_VERSION (__GNUC__*1000 + __GNUC_MAJOR__*10)
#if (GNUC_VERSION >= 4060) || defined(__clang__)
# pragma GCC diagnostic ignored "-Wdeprecated"
#endif

#include <altivec.h>
int main(int argc, char* argv[])
{
    __vector unsigned char x;
    x=vec_ld(0, (unsigned char*)argv[0]);
    x=vec_add(x,x);
    return 0;
}