Update test programs for PowerPC (GH #741)

pull/748/head
Jeffrey Walton 2018-11-19 02:02:43 -05:00
parent b1929f78d0
commit c9f1a26024
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 3 additions and 3 deletions

View File

@ -2,19 +2,19 @@
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
#if defined(__ibmxl__) || (defined(_AIX) && defined(__xlC__)) #if defined(__ibmxl__) || (defined(_AIX) && defined(__xlC__))
__vector unsigned char x; __vector unsigned char x = {1,2,3,4,5,6,7,8};
x=__vcipher(x,x); x=__vcipher(x,x);
x=__vcipherlast(x,x); x=__vcipherlast(x,x);
x=__vncipher(x,x); x=__vncipher(x,x);
x=__vncipherlast(x,x); x=__vncipherlast(x,x);
#elif defined(__clang__) #elif defined(__clang__)
__vector unsigned long long x; __vector unsigned long long x = {1,2};
x=__builtin_altivec_crypto_vcipher(x,x); x=__builtin_altivec_crypto_vcipher(x,x);
x=__builtin_altivec_crypto_vcipherlast(x,x); x=__builtin_altivec_crypto_vcipherlast(x,x);
x=__builtin_altivec_crypto_vncipher(x,x); x=__builtin_altivec_crypto_vncipher(x,x);
x=__builtin_altivec_crypto_vncipherlast(x,x); x=__builtin_altivec_crypto_vncipherlast(x,x);
#elif defined(__GNUC__) #elif defined(__GNUC__)
__vector unsigned long long x; __vector unsigned long long x = {1,2};
x=__builtin_crypto_vcipher(x,x); x=__builtin_crypto_vcipher(x,x);
x=__builtin_crypto_vcipherlast(x,x); x=__builtin_crypto_vcipherlast(x,x);
x=__builtin_crypto_vncipher(x,x); x=__builtin_crypto_vncipher(x,x);