@@ -272,7 +272,7 @@ AM_GLIB_GNU_GETTEXT
272
272
# [ax_gcc_version_option=yes],
273
273
# [ax_gcc_version_option=no]
274
274
# )
275
- AC_MSG_CHECKING ( [ for gcc version] )
275
+ AC_MSG_CHECKING ( [ for $CC version] )
276
276
GCC_VERSION=""
277
277
version=$($CC -dumpversion)
278
278
if test $? = 0; then
@@ -326,7 +326,7 @@ AC_TYPE_SIZE_T
326
326
327
327
# g++/gcc 4.x and 5.x have rather broken vector support ... 5.4.1 seems to
328
328
# work, but 5.4.0 fails to even compile
329
- AC_MSG_CHECKING ( [ for gcc with working vector support] )
329
+ AC_MSG_CHECKING ( [ for $CC with working vector support] )
330
330
if test x"$GCC_VERSION_MAJOR" != x"4" -a x"$GCC_VERSION_MAJOR" != x"5"; then
331
331
AC_MSG_RESULT ( [ yes] )
332
332
else
@@ -339,7 +339,7 @@ if test x"$ax_cv_have_var_attribute_vector_size" = x"yes"; then
339
339
AC_MSG_CHECKING ( [ for C++ vector shuffle] )
340
340
AC_LANG_PUSH ( [ C++] )
341
341
AC_TRY_COMPILE ( [
342
- typedef float v4f __attribute__((vector_size(4 * sizeof(float))));
342
+ typedef float v4f __attribute__((vector_size(4 * sizeof(float)),aligned(16) ));
343
343
] ,[
344
344
v4f f; f[ 3] = 99;
345
345
] ,[
@@ -362,7 +362,7 @@ if test x"$have_vector_shuffle" = x"yes"; then
362
362
AC_MSG_CHECKING ( [ for C++ vector arithmetic] )
363
363
AC_LANG_PUSH ( [ C++] )
364
364
AC_TRY_COMPILE ( [
365
- typedef float v4f __attribute__((vector_size(4 * sizeof(float))));
365
+ typedef float v4f __attribute__((vector_size(4 * sizeof(float)),aligned(16) ));
366
366
] ,[
367
367
v4f f = {1, 2, 3, 4}; f *= 12.0;
368
368
v4f g = {5, 6, 7, 8}; f = g > 0 ? g : -1 * g;
@@ -382,7 +382,7 @@ if test x"$have_vector_arith" = x"yes"; then
382
382
AC_MSG_CHECKING ( [ for C++ signed constants in vector templates] )
383
383
AC_LANG_PUSH ( [ C++] )
384
384
AC_TRY_COMPILE ( [
385
- typedef float v4f __attribute__((vector_size(4 * sizeof(float))));
385
+ typedef float v4f __attribute__((vector_size(4 * sizeof(float)),aligned(16) ));
386
386
template <typename T>
387
387
static void
388
388
h( v4f B )
0 commit comments