aboutsummaryrefslogtreecommitdiff
path: root/libcpp/configure
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2010-08-24 14:08:05 -0700
committerRichard Henderson <rth@gcc.gnu.org>2010-08-24 14:08:05 -0700
commit6f173e52cbd7ec8160a7c0d6c23fa6d1bb7a7f66 (patch)
treebfa80eeb59c1e4fde073f12dc44c3301e2faed5c /libcpp/configure
parent8a5b85388f5c0ae491e80f52c9aee4816499a7f6 (diff)
downloadgcc-6f173e52cbd7ec8160a7c0d6c23fa6d1bb7a7f66.zip
gcc-6f173e52cbd7ec8160a7c0d6c23fa6d1bb7a7f66.tar.gz
gcc-6f173e52cbd7ec8160a7c0d6c23fa6d1bb7a7f66.tar.bz2
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
Diffstat (limited to 'libcpp/configure')
-rwxr-xr-xlibcpp/configure21
1 files changed, 21 insertions, 0 deletions
diff --git a/libcpp/configure b/libcpp/configure
index a2ce1c3..012ee41 100755
--- a/libcpp/configure
+++ b/libcpp/configure
@@ -7209,6 +7209,27 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+case $target in
+ i?86-* | x86_64-*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+$as_echo "#define HAVE_SSE4 1" >>confdefs.h
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+esac
+
# Output.
ac_config_headers="$ac_config_headers config.h:config.in"