OSDN Git Service

2010-12-08 Iain Sandoe <iains@gcc.gnu.org>
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Dec 2010 23:32:27 +0000 (23:32 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Dec 2010 23:32:27 +0000 (23:32 +0000)
gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
x86_64-*-darwin* to with_cpu:-core2.
gcc/config/i386/mmx.md (*mov<mode>_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

gcc/ChangeLog
gcc/config.gcc
gcc/config/i386/mmx.md
gcc/config/i386/sse.md

index 9b3e799..60becc5 100644 (file)
@@ -1,3 +1,12 @@
+2010-12-08  Iain Sandoe <iains@gcc.gnu.org>
+
+       gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
+       x86_64-*-darwin* to with_cpu:-core2.
+       gcc/config/i386/mmx.md (*mov<mode>_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  <rguenther@suse.de>
            Sebastian Pop  <sebastian.pop@amd.com>
 
index dfbf2c5..12377e6 100644 (file)
@@ -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"
        ;;
index 8053bc0..0be63d0 100644 (file)
@@ -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,*,*,*")
index 279f111..e13308c 100644 (file)
   "@
    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}
   "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}