diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2012-03-08 09:41:32 -0800 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-03-13 18:02:26 -0400 |
commit | 61d999b9101c76bd463101923d2143e31857e7f8 (patch) | |
tree | 202bb7de28053b6e613fe80c4e455670cd78c640 | |
parent | ad4b6922f23e91b291c794b9fde5ee81941adb64 (diff) |
Disable MMX when incompatible clang is being used.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c3c711c8..1ca3c023 100644 --- a/configure.ac +++ b/configure.ac @@ -297,6 +297,15 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include <mmintrin.h> int main () { __m64 v = _mm_cvtsi32_si64 (1); + __m64 w; + int8_t x; + + /* Some versions of clang will choke on K */ + asm ("pshufw %2, %1, %0\n\t" + : "=y" (v) + : "y" (w), "K" (x) + ); + return _mm_cvtsi64_si32 (v); }]])], have_mmx_intrinsics=yes) CFLAGS=$xserver_save_CFLAGS |