aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-10-06 18:57:51 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-10-06 18:57:51 +0000
commit3cff9f8947fe4792f3266aa9b7f8de8f039bd34a (patch)
tree9d875489b70ce5ec3591dc7aba77a627a55947e2
parent6e1f1fdd359666f3f8cf8996c12f9efbf6d0f2dd (diff)
80 col violation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30770 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86Subtarget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index 3fe25fdac4..85e8de721d 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -28,8 +28,9 @@ AsmWriterFlavor("x86-asm-syntax", cl::init(X86Subtarget::unset),
/// GetCpuIDAndInfo - Execute the specified cpuid and return the 4 values in the
/// specified arguments. If we can't run cpuid on the host, return true.
-static inline bool GetCpuIDAndInfo(unsigned value, unsigned *rEAX, unsigned *rEBX,
- unsigned *rECX, unsigned *rEDX) {
+static inline bool GetCpuIDAndInfo(unsigned value, unsigned *rEAX,
+ unsigned *rEBX, unsigned *rECX,
+ unsigned *rEDX) {
#if defined(__x86_64__)
asm ("pushq\t%%rbx\n\t"
"cpuid\n\t"
@@ -103,7 +104,7 @@ static const char *GetCurrentX86CPU() {
unsigned Family = (EAX >> 8) & 0xf; // Bits 8 - 11
unsigned Model = (EAX >> 4) & 0xf; // Bits 4 - 7
GetCpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX);
- bool Em64T = EDX & (1 << 29);
+ bool Em64T = (EDX >> 29) & 0x1;
union {
unsigned u[3];