diff mbox

PATCH: Update host_detect_local_cpu for new Intel processors

Message ID 20150124023701.GA22505@gmail.com
State New
Headers show

Commit Message

H.J. Lu Jan. 24, 2015, 2:37 a.m. UTC
The new Silvermont aswell and Broadwell model numbers are in

http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf

This patch updates host_detect_local_cpu to check new Silvermont, Haswell
and Broadwell model numbers.  OK for trunk and 4.9 branch?

Thanks.


H.J.
2015-01-23   H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/driver-i386.c (host_detect_local_cpu): Check new
	Silvermont, Haswell and Broadwell model numbers.
diff mbox

Patch

diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index c731c50..555b415 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -703,6 +703,7 @@  const char *host_detect_local_cpu (int argc, const char **argv)
 	  cpu = "bonnell";
 	  break;
 	case 0x37:
+	case 0x4a:
 	case 0x4d:
 	  /* Silvermont.  */
 	  cpu = "silvermont";
@@ -738,11 +739,16 @@  const char *host_detect_local_cpu (int argc, const char **argv)
 	  cpu = "ivybridge";
 	  break;
 	case 0x3c:
+	case 0x3f:
 	case 0x45:
 	case 0x46:
 	  /* Haswell.  */
 	  cpu = "haswell";
 	  break;
+	case 0x3d:
+	  /* Broadwell.  */
+	  cpu = "broadwell";
+	  break;
 	default:
 	  if (arch)
 	    {