[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046 Dzianis Kahanovich changed: What|Removed |Added CC||mahatma at eu dot by --- Comment #12 from Dzianis Kahanovich 2010-11-01 13:22:26 UTC --- This patch produced regression, described (and more) in Bug 45359
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #11 from hjl dot tools at gmail dot com 2010-08-11 20:31 --- Maybe we can improve the unknown processor support: 1. For 32bit, use i686 + -mSSEx. 2. For 64bit, use x86_64 + -mSSEx. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #10 from hjl dot tools at gmail dot com 2010-08-11 19:12 --- (In reply to comment #9) > Apparently some KVM versions claim to be GenuineIntel family 6 model 6 with > lm, > but not ssse3, see > https://bugzilla.redhat.com/show_bug.cgi?id=620562 > Perhaps the has_longmode -> core2 test should be restored... > There are no such processors from Intel. If you look at SSE3 and LM, it sounds like Nocona. But it also has family 6 and model 6. It looks like Pentium-M. If we pass -march=core2, it will generate SSSE3, which isn't supported. The bug is in KVM. It should never make up fake Intel processors. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #9 from jakub at gcc dot gnu dot org 2010-08-11 18:44 --- Apparently some KVM versions claim to be GenuineIntel family 6 model 6 with lm, but not ssse3, see https://bugzilla.redhat.com/show_bug.cgi?id=620562 Perhaps the has_longmode -> core2 test should be restored... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #8 from hjl dot tools at gmail dot com 2010-05-10 03:52 --- Fixed. No need to change gcc 4.4. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED Target Milestone|4.4.6 |4.5.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #7 from dirtyepic at gentoo dot org 2010-05-09 18:44 --- sorry, wrong bugzilla. ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #6 from dirtyepic at gentoo dot org 2010-05-09 18:39 --- Created an attachment (id=20614) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20614&action=view) gcc45-PR44046-core2.patch -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
-- hjl dot tools at gmail dot com changed: What|Removed |Added Known to work||4.5.1 4.6.0 Target Milestone|--- |4.4.6 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #5 from hjl at gcc dot gnu dot org 2010-05-09 14:53 --- Subject: Bug 44046 Author: hjl Date: Sun May 9 14:53:00 2010 New Revision: 159203 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159203 Log: Properly detect Atom, Core 2 and Core i7. 2010-05-09 H.J. Lu Backport from mainline 2010-05-09 H.J. Lu PR target/44046 * config/i386/driver-i386.c (host_detect_local_cpu): Properly detect Atom, Core 2 and Core i7. Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/config/i386/driver-i386.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #4 from hjl at gcc dot gnu dot org 2010-05-09 14:50 --- Subject: Bug 44046 Author: hjl Date: Sun May 9 14:49:53 2010 New Revision: 159202 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159202 Log: Properly detect Atom, Core 2 and Core i7. 2010-05-09 H.J. Lu PR target/44046 * config/i386/driver-i386.c (host_detect_local_cpu): Properly detect Atom, Core 2 and Core i7. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/driver-i386.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #3 from hjl dot tools at gmail dot com 2010-05-09 14:43 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2010-05/msg00606.html -- hjl dot tools at gmail dot com changed: What|Removed |Added URL||http://gcc.gnu.org/ml/gcc- ||patches/2010- ||05/msg00606.html Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2010-05-09 14:43:11 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #2 from ubizjak at gmail dot com 2010-05-09 07:25 --- >From config/driver-i386.c [...] case PROCESSOR_PENTIUMPRO: if (model == 28) cpu = "atom"; else if (model >= 28 && l2sizekb < 2048) /* Assume it's a small core if there's less than 2MB cache */ cpu = "atom"; else if (has_longmode) cpu = "core2"; And from cpuid: cpu family : 6 model : 37 cache size : 3072 KB driver detects --param l2-cache-size=3072 and -march=atom ... WTF ? Can you please step through the driver with debugger and determine _exact_ values of model and l2sizekb in the above source? It is around line 540 in gcc/config/i386/driver-i386.c. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046
[Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
--- Comment #1 from dirtyepic at gentoo dot org 2010-05-09 04:48 --- Created an attachment (id=20610) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20610&action=view) /proc/cpuinfo -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44046