summaryrefslogtreecommitdiff
path: root/TestPrograms/test_power8.cxx
blob: 9e864e10905420f3367b8c3a95f97d4b5700fb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <altivec.h>
int main(int argc, char* argv[])
{
	__vector unsigned long long z;
#if defined(__xlc__) || defined(__xlC__) || defined(__clang__)
	__vector unsigned char x;
	x=__vcipher(x,x);
	x=__vcipherlast(x,x);
	x=__vncipher(x,x);
	x=__vncipherlast(x,x);
#elif defined(CRYPTOPP_GCC_VERSION)
	__vector unsigned long long x;
	x=__builtin_crypto_vcipher(x,x);
	x=__builtin_crypto_vcipherlast(x,x);
	x=__builtin_crypto_vncipher(x,x);
	x=__builtin_crypto_vncipherlast(x,x);
#endif
	return 0;
}