projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d53826
)
Use movl+xchgl instead of pushl+popl.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 8 Nov 2006 20:35:37 +0000
(20:35 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 8 Nov 2006 20:35:37 +0000
(20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31572
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86Subtarget.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86Subtarget.cpp
b/lib/Target/X86/X86Subtarget.cpp
index 804ba39f69a6bc032187e6fb6125f569744e5756..3ac8a38b314ebcf1df02ac34df15b30b2f101cb3 100644
(file)
--- a/
lib/Target/X86/X86Subtarget.cpp
+++ b/
lib/Target/X86/X86Subtarget.cpp
@@
-44,10
+44,9
@@
bool X86::GetCpuIDAndInfo(unsigned value, unsigned *rEAX, unsigned *rEBX,
return false;
#elif defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)
#if defined(__GNUC__)
- asm ("
pushl\t%%ebx
\n\t"
+ asm ("
movl\t%%ebx, %%esi
\n\t"
"cpuid\n\t"
- "movl\t%%ebx, %%esi\n\t"
- "popl\t%%ebx"
+ "xchgl\t%%ebx, %%esi\n\t"
: "=a" (*rEAX),
"=S" (*rEBX),
"=c" (*rECX),