summaryrefslogtreecommitdiff
path: root/TestPrograms/test_ppc_power9.cxx
blob: b39c5c7f05e0da00ca87e30ca828723080c8bf7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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[])
{
#if defined(_ARCH_PWR9)
    __vector unsigned int v = vec_xl_be(0, (unsigned int*)argv[0]);
#else
    int XXX[-1];
#endif

#if defined(__GNUC__) || defined(__IBM_GCC_ASM)
    unsigned int y = __builtin_darn_32();
#else
    int XXX[-1];
#endif

    return 0;
}