[llvm-commits] CVS: llvm/lib/Target/X86/X86Subtarget.cpp

Evan Cheng evan.cheng at apple.com
Fri Oct 6 11:58:06 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86Subtarget.cpp updated: 1.35 -> 1.36
---
Log message:

80 col violation.

---
Diffs of the changes:  (+4 -3)

 X86Subtarget.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/X86/X86Subtarget.cpp
diff -u llvm/lib/Target/X86/X86Subtarget.cpp:1.35 llvm/lib/Target/X86/X86Subtarget.cpp:1.36
--- llvm/lib/Target/X86/X86Subtarget.cpp:1.35	Fri Oct  6 04:17:41 2006
+++ llvm/lib/Target/X86/X86Subtarget.cpp	Fri Oct  6 13:57:51 2006
@@ -28,8 +28,9 @@
 
 /// 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 @@
   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];






More information about the llvm-commits mailing list