Fix power10 gcc intrinsic check

__builtin_vsx_assemble_pair was only in GCC 10-11.2 and was replaced by
__builtin_vsx_build_pair thereafter.
This commit is contained in:
Ian McInerney 2023-08-14 21:36:35 +01:00
parent 562ef5fdca
commit 79c15db348
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ typedef __vector unsigned char vec_t;
#define INIT_1ACC() __builtin_mma_xxsetaccz(&acc0);
#if (defined(__GNUC__) && (__GNUC__ == 10))
#if (defined(__GNUC__) && (__GNUC__ == 10 || (__GNUC__ == 11 && __GNUC_MINOR__ <= 2)))
#if defined(_AIX)
#define LOAD_PAIR(pair, v0, v1) \
__builtin_vsx_assemble_pair(&pair, (vec_t)v0, (vec_t)v1);

View File

@ -167,7 +167,7 @@ typedef __vector unsigned char vec_t;
#define INIT_1ACC() __builtin_mma_xxsetaccz(&acc0);
#if (defined(__GNUC__) && (__GNUC__ == 10))
#if (defined(__GNUC__) && (__GNUC__ == 10 || (__GNUC__ == 11 && __GNUC_MINOR__ <= 2)))
#if defined(_AIX)
#define LOAD_PAIR(pair, v0, v1) \
__builtin_vsx_assemble_pair(&pair, (vec_t)v0, (vec_t)v1);