diff options
author | Richard Henderson <rth@redhat.com> | 2010-08-24 14:08:05 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2010-08-24 14:08:05 -0700 |
commit | 6f173e52cbd7ec8160a7c0d6c23fa6d1bb7a7f66 (patch) | |
tree | bfa80eeb59c1e4fde073f12dc44c3301e2faed5c /libcpp/configure.ac | |
parent | 8a5b85388f5c0ae491e80f52c9aee4816499a7f6 (diff) | |
download | gcc-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.ac')
-rw-r--r-- | libcpp/configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
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]) |