Add another workaround for Clang on PowerPC

This commit is contained in:
Jeffrey Walton 2019-10-23 12:50:58 -04:00
parent 1f3e65fc35
commit c5be67b64a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -67,7 +67,7 @@ bool CPU_ProbePower8()
word64 w1[2] = {x, x}, w2[2] = {4, 6}, w3[2];
// Specifically call the VSX loads and stores with 64-bit types
#if defined(__ibmxl__) || (defined(_AIX) && defined(__xlC__))
#if defined(__ibmxl__) || (defined(_AIX) && defined(__xlC__)) || defined(__clang__)
const uint64x2_p v1 = vec_xl(0, (unsigned long long*)w1);
const uint64x2_p v2 = vec_xl(0, (unsigned long long*)w2);
const uint64x2_p v3 = vec_add(v1, v2); // 64-bit add