Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gcc/4.8.1/gentoo: 97_all_native-ivybridge-haswell.patch README.history
Date: Thu, 29 Aug 2013 04:46:04
Message-Id: 20130829044557.A57802004C@flycatcher.gentoo.org
1 dirtyepic 13/08/29 04:45:57
2
3 Modified: README.history
4 Added: 97_all_native-ivybridge-haswell.patch
5 Log:
6 Add -march=native support for Ivy Bridge and Haswell.
7
8 Revision Changes Path
9 1.5 src/patchsets/gcc/4.8.1/gentoo/README.history
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/README.history?rev=1.5&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/README.history?rev=1.5&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/README.history?r1=1.4&r2=1.5
14
15 Index: README.history
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.8.1/gentoo/README.history,v
18 retrieving revision 1.4
19 retrieving revision 1.5
20 diff -u -r1.4 -r1.5
21 --- README.history 29 Aug 2013 04:35:06 -0000 1.4
22 +++ README.history 29 Aug 2013 04:45:57 -0000 1.5
23 @@ -1,5 +1,6 @@
24 1.2 (pending)
25 - 20_all_libgcc-ldflags.patch
26 + + 97_all_native-ivybridge-haswell.patch
27
28 1.1 26 Aug 2013
29 + 17_all_libitm-Werror.patch
30
31
32
33 1.1 src/patchsets/gcc/4.8.1/gentoo/97_all_native-ivybridge-haswell.patch
34
35 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/97_all_native-ivybridge-haswell.patch?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.8.1/gentoo/97_all_native-ivybridge-haswell.patch?rev=1.1&content-type=text/plain
37
38 Index: 97_all_native-ivybridge-haswell.patch
39 ===================================================================
40 Backport -march=native support for Ivy Bridge (core-avx-i) and Haswell
41 (core-avx2).
42
43 http://gcc.gnu.org/PR57927
44
45
46 commit 78a5e928bc94e1ef35dc15853a609863bd10b327
47 Author: uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
48 Date: Wed Aug 28 08:25:13 2013 +0000
49
50 Backport from mainline
51 2013-08-27 H.J. Lu <hongjiu.lu@×××××.com>
52
53 * config/i386/driver-i386.c (host_detect_local_cpu): Update
54 Haswell processor detection.
55
56 Backport from mainline
57 2013-08-27 Christian Widmer <shadow@××××××.de>
58
59 PR target/57927
60 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
61 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
62 AVX2 capable processors.
63
64
65
66 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@202045 138bc75d-0d04-0410-961f-82ee72b054a4
67 ---
68 gcc/ChangeLog | 20 ++++++++++++++++++--
69 gcc/config/i386/driver-i386.c | 30 ++++++++++++++++++++----------
70 2 files changed, 38 insertions(+), 12 deletions(-)
71
72
73 --- a/gcc/config/i386/driver-i386.c
74 +++ b/gcc/config/i386/driver-i386.c
75 @@ -638,13 +638,18 @@ const char *host_detect_local_cpu (int argc, const char **argv)
76 /* Atom. */
77 cpu = "atom";
78 break;
79 + case 0x0f:
80 + /* Merom. */
81 + case 0x17:
82 + case 0x1d:
83 + /* Penryn. */
84 + cpu = "core2";
85 + break;
86 case 0x1a:
87 case 0x1e:
88 case 0x1f:
89 case 0x2e:
90 /* Nehalem. */
91 - cpu = "corei7";
92 - break;
93 case 0x25:
94 case 0x2c:
95 case 0x2f:
96 @@ -656,20 +661,25 @@ const char *host_detect_local_cpu (int argc, const char **argv)
97 /* Sandy Bridge. */
98 cpu = "corei7-avx";
99 break;
100 - case 0x17:
101 - case 0x1d:
102 - /* Penryn. */
103 - cpu = "core2";
104 + case 0x3a:
105 + case 0x3e:
106 + /* Ivy Bridge. */
107 + cpu = "core-avx-i";
108 break;
109 - case 0x0f:
110 - /* Merom. */
111 - cpu = "core2";
112 + case 0x3c:
113 + case 0x45:
114 + case 0x46:
115 + /* Haswell. */
116 + cpu = "core-avx2";
117 break;
118 default:
119 if (arch)
120 {
121 /* This is unknown family 0x6 CPU. */
122 - if (has_avx)
123 + if (has_avx2)
124 + /* Assume Haswell. */
125 + cpu = "core-avx2";
126 + else if (has_avx)
127 /* Assume Sandy Bridge. */
128 cpu = "corei7-avx";
129 else if (has_sse4_2)