From: mrs Date: Wed, 8 Dec 2010 23:32:27 +0000 (+0000) Subject: 2010-12-08 Iain Sandoe X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffa7199b715227a0c76abb772aac80a7e3a19a9b;p=thirdparty%2Fgcc.git 2010-12-08 Iain Sandoe gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and x86_64-*-darwin* to with_cpu:-core2. gcc/config/i386/mmx.md (*mov_internal_rex64): Replace movq with movd for darwin assembler. gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto. (*vec_concatv2di_rex64_sse): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167611 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9b3e799efccb..60becc53dbde 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2010-12-08 Iain Sandoe + + gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and + x86_64-*-darwin* to with_cpu:-core2. + gcc/config/i386/mmx.md (*mov_internal_rex64): Replace movq + with movd for darwin assembler. + gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto. + (*vec_concatv2di_rex64_sse): Ditto. + 2010-12-08 Richard Guenther Sebastian Pop diff --git a/gcc/config.gcc b/gcc/config.gcc index dfbf2c56081d..12377e651b0a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1165,16 +1165,12 @@ hppa[12]*-*-hpux11*) i[34567]86-*-darwin*) need_64bit_hwint=yes need_64bit_isa=yes - - # This is so that '.../configure && make' doesn't fail due to - # config.guess deciding that the configuration is i386-*-darwin* and - # then this file using that to set --with-cpu=i386 which has no -m64 - # support. - with_cpu=${with_cpu:-generic} + # Baseline choice for a machine that allows m64 support. + with_cpu=${with_cpu:-core2} tmake_file="${tmake_file} t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" ;; x86_64-*-darwin*) - with_cpu=${with_cpu:-generic} + with_cpu=${with_cpu:-core2} tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" tm_file="${tm_file} ${cpu_type}/darwin64.h" ;; diff --git a/gcc/config/i386/mmx.md b/gcc/config/i386/mmx.md index 8053bc043fb0..0be63d00a63a 100644 --- a/gcc/config/i386/mmx.md +++ b/gcc/config/i386/mmx.md @@ -82,8 +82,8 @@ %vpxor\t%0, %d0 %vmovq\t{%1, %0|%0, %1} %vmovq\t{%1, %0|%0, %1} - %vmovq\t{%1, %0|%0, %1} - %vmovq\t{%1, %0|%0, %1}" + %vmovd\t{%1, %0|%0, %1} + %vmovd\t{%1, %0|%0, %1}" [(set_attr "type" "imov,imov,mmx,mmxmov,mmxmov,mmxmov,ssecvt,ssecvt,sselog1,ssemov,ssemov,ssemov,ssemov") (set_attr "unit" "*,*,*,*,*,*,mmx,mmx,*,*,*,*,*") (set_attr "prefix_rep" "*,*,*,*,*,*,1,1,*,1,*,*,*") diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 279f11128ec5..e13308c0de4d 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -7719,7 +7719,7 @@ "@ pinsrq\t{$0x1, %2, %0|%0, %2, 0x1} movq\t{%1, %0|%0, %1} - movq\t{%1, %0|%0, %1} + movd\t{%1, %0|%0, %1} movq2dq\t{%1, %0|%0, %1} punpcklqdq\t{%2, %0|%0, %2} movlhps\t{%2, %0|%0, %2} @@ -7738,7 +7738,7 @@ "TARGET_64BIT && TARGET_SSE" "@ movq\t{%1, %0|%0, %1} - movq\t{%1, %0|%0, %1} + movd\t{%1, %0|%0, %1} movq2dq\t{%1, %0|%0, %1} punpcklqdq\t{%2, %0|%0, %2} movlhps\t{%2, %0|%0, %2}