From 6f173e52cbd7ec8160a7c0d6c23fa6d1bb7a7f66 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 24 Aug 2010 14:08:05 -0700 Subject: re PR bootstrap/45376 (no such instruction: `pcmpestri $0,(%rdi),%xmm0') PR bootstrap/45376 * configure.ac (HAVE_SSE4): New check. * configure, config.in: Rebuild. * lex.c (search_line_sse42): Omit if !HAVE_SSE4. From-SVN: r163528 --- libcpp/configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcpp/configure.ac') diff --git a/libcpp/configure.ac b/libcpp/configure.ac index 1250f49..8082117 100644 --- a/libcpp/configure.ac +++ b/libcpp/configure.ac @@ -184,6 +184,13 @@ AC_DEFINE_UNQUOTED(HOST_WIDE_INT, $host_wide_int, [Define to the widest efficient host integer type at least as wide as the target's size_t type.]) +case $target in + i?86-* | x86_64-*) + AC_TRY_COMPILE([], [asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))], + [AC_DEFINE([HAVE_SSE4], [1], + [Define to 1 if you can assemble SSE4 insns.])]) +esac + # Output. AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1]) -- cgit v1.1