From 4a18bbc5501fe39706b6fbda8419cd3ccd3f9070 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 6 Oct 2017 17:23:02 +0100 Subject: [PATCH] another try at testing for working vectors --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0fefa5e9..ad7a201e 100644 --- a/configure.ac +++ b/configure.ac @@ -373,7 +373,7 @@ if test x$have_vector_shuffle = x"yes"; then AC_TRY_COMPILE([ typedef float v4f __attribute__((vector_size(4 * sizeof(float)))); ],[ - v4f f = {1, 2, 3, 4}; f *= 12.0; f *= -1; + v4f f = {1, 2, 3, 4}; f *= 12.0; f = f > 0 ? f : -1 * f; ],[ AC_MSG_RESULT([yes]) have_vector_arith=yes