From fe04878d00b2847e8982e96d0a274e8c3b8d8f0f Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 21 Mar 2013 10:31:52 +0100 Subject: re PR bootstrap/56656 (Suffix or operands invalid for 'movq') PR bootstrap/56656 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test. * configure: Regenerate. * config.in: Regenerate. * config/i386/i386.md (*movdf_internal): Use HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require movd instead of movq mnemonic for interunit moves. (*movdi_internal): Ditto. From-SVN: r196861 --- gcc/configure | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gcc/configure') diff --git a/gcc/configure b/gcc/configure index e0f3230..69d99af 100755 --- a/gcc/configure +++ b/gcc/configure @@ -24644,6 +24644,39 @@ $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5 +$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; } +if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gcc_cv_as_ix86_interunit_movq=no + if test x$gcc_cv_as != x; then + $as_echo '.code64 + movq %mm0, %rax + movq %rax, %xmm0' > conftest.s + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } + then + gcc_cv_as_ix86_interunit_movq=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5 +$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; } +if test $gcc_cv_as_ix86_interunit_movq = yes; then + +$as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h + +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5 $as_echo_n "checking assembler for hle prefixes... " >&6; } if test "${gcc_cv_as_ix86_hle+set}" = set; then : -- cgit v1.1