public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/44046] Intel Core i5 M520 CPU detected as atom with -march=native
Date: Sun, 09 May 2010 07:26:00 -0000	[thread overview]
Message-ID: <20100509072545.25742.qmail@sourceware.org> (raw)
In-Reply-To: <bug-44046-10406@http.gcc.gnu.org/bugzilla/>



------- 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


  parent reply	other threads:[~2010-05-09  7:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-09  4:47 [Bug target/44046] New: " dirtyepic at gentoo dot org
2010-05-09  4:48 ` [Bug target/44046] " dirtyepic at gentoo dot org
2010-05-09  7:26 ` ubizjak at gmail dot com [this message]
2010-05-09 14:43 ` hjl dot tools at gmail dot com
2010-05-09 14:50 ` hjl at gcc dot gnu dot org
2010-05-09 14:53 ` hjl at gcc dot gnu dot org
2010-05-09 15:43 ` hjl dot tools at gmail dot com
2010-05-09 18:39 ` dirtyepic at gentoo dot org
2010-05-09 18:44 ` dirtyepic at gentoo dot org
2010-05-10  3:53 ` hjl dot tools at gmail dot com
2010-08-11 18:44 ` jakub at gcc dot gnu dot org
2010-08-11 19:12 ` hjl dot tools at gmail dot com
2010-08-11 20:31 ` hjl dot tools at gmail dot com
     [not found] <bug-44046-4@http.gcc.gnu.org/bugzilla/>
2010-11-01 13:22 ` mahatma at eu dot by

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100509072545.25742.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).