aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2010-12-08 23:32:27 +0000
committerMike Stump <mrs@gcc.gnu.org>2010-12-08 23:32:27 +0000
commitc0aefbbe26379c16797a84130f4e890a3748c691 (patch)
treef46767b5f405074e85eeec7b571a49fd692a0d92
parent7c35d89dca9e7c867d51e0bda2d0b98b2e147c86 (diff)
downloadgcc-c0aefbbe26379c16797a84130f4e890a3748c691.zip
gcc-c0aefbbe26379c16797a84130f4e890a3748c691.tar.gz
gcc-c0aefbbe26379c16797a84130f4e890a3748c691.tar.bz2
gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and x86_64-*-darwin* to with_cpu:-core2.
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. From-SVN: r167611
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config.gcc10
-rw-r--r--gcc/config/i386/mmx.md4
-rw-r--r--gcc/config/i386/sse.md4
4 files changed, 16 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9b3e799..60becc5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/config.gcc b/gcc/config.gcc
index dfbf2c5..12377e6 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 8053bc0..0be63d0 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 279f111..e13308c 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}