OSDN Git Service

Backport from mainline
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Aug 2013 08:36:37 +0000 (08:36 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Aug 2013 08:36:37 +0000 (08:36 +0000)
2013-08-27  Christian Widmer  <shadow@umbrox.de>

PR target/57927
* config/i386/driver-i386.c (host_detect_local_cpu): Add detection
of Ivy Bridge processors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@202047 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/driver-i386.c

index 5bcf448..aafd0bd 100644 (file)
@@ -1,3 +1,12 @@
+2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
+
+       Backport from mainline
+       2013-08-27  Christian Widmer  <shadow@umbrox.de>
+
+       PR target/57927
+       * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
+       of Ivy Bridge processors.
+
 2013-08-21  Richard Earnshaw  <rearnsha@arm.com>
 
        PR target/56979
index 64bae0d..57f9515 100644 (file)
@@ -630,13 +630,18 @@ const char *host_detect_local_cpu (int argc, const char **argv)
          /* Atom.  */
          cpu = "atom";
          break;
+       case 0x0f:
+         /* Merom.  */
+       case 0x17:
+       case 0x1d:
+         /* Penryn.  */
+         cpu = "core2";
+         break;
        case 0x1a:
        case 0x1e:
        case 0x1f:
        case 0x2e:
          /* Nehalem.  */
-         cpu = "corei7";
-         break;
        case 0x25:
        case 0x2c:
        case 0x2f:
@@ -648,14 +653,10 @@ const char *host_detect_local_cpu (int argc, const char **argv)
          /* Sandy Bridge.  */
          cpu = "corei7-avx";
          break;
-       case 0x17:
-       case 0x1d:
-         /* Penryn.  */
-         cpu = "core2";
-         break;
-       case 0x0f:
-         /* Merom.  */
-         cpu = "core2";
+       case 0x3a:
+       case 0x3e:
+         /* Ivy Bridge.  */
+         cpu = "core-avx-i";
          break;
        default:
          if (arch)