Commit 892c7a07 by Uros Bizjak Committed by Uros Bizjak

builtin_target.c (vendor_signatures): Remove.

	* gcc.target/i386/builtin_target.c (vendor_signatures): Remove.
	(check_detailed): Use signature_INTEL_ebx and signature_AMD_ebx
	to check vendor signature.

From-SVN: r194762
parent ef121f89
2012-12-31 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/builtin_target.c (vendor_signatures): Remove.
(check_detailed): Use signature_INTEL_ebx and signature_AMD_ebx
to check vendor signature.
2012-12-28 Janus Weil <janus@gcc.gnu.org> 2012-12-28 Janus Weil <janus@gcc.gnu.org>
PR fortran/55692 PR fortran/55692
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
#include <assert.h> #include <assert.h>
#include "cpuid.h" #include "cpuid.h"
enum vendor_signatures
{
SIG_INTEL = 0x756e6547 /* Genu */,
SIG_AMD = 0x68747541 /* Auth */
};
/* Check if the Intel CPU model and sub-model are identified. */ /* Check if the Intel CPU model and sub-model are identified. */
static void static void
check_intel_cpu_model (unsigned int family, unsigned int model, check_intel_cpu_model (unsigned int family, unsigned int model,
...@@ -191,7 +185,7 @@ check_detailed () ...@@ -191,7 +185,7 @@ check_detailed ()
extended_model = (eax >> 12) & 0xf0; extended_model = (eax >> 12) & 0xf0;
extended_family = (eax >> 20) & 0xff; extended_family = (eax >> 20) & 0xff;
if (vendor == SIG_INTEL) if (vendor == signature_INTEL_ebx)
{ {
assert (__builtin_cpu_is ("intel")); assert (__builtin_cpu_is ("intel"));
/* Adjust family and model for Intel CPUs. */ /* Adjust family and model for Intel CPUs. */
...@@ -205,7 +199,7 @@ check_detailed () ...@@ -205,7 +199,7 @@ check_detailed ()
check_intel_cpu_model (family, model, brand_id); check_intel_cpu_model (family, model, brand_id);
check_features (ecx, edx, max_level); check_features (ecx, edx, max_level);
} }
else if (vendor == SIG_AMD) else if (vendor == signature_AMD_ebx)
{ {
assert (__builtin_cpu_is ("amd")); assert (__builtin_cpu_is ("amd"));
/* Adjust model and family for AMD CPUS. */ /* Adjust model and family for AMD CPUS. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment