projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3efb2
)
Zero ecx with a mov instruction
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Sun, 16 Jun 2019 13:04:10 +0000
(15:04 +0200)
committer
GitHub
<noreply@github.com>
Sun, 16 Jun 2019 13:04:10 +0000
(15:04 +0200)
PGI assembler does not like the initialization in the constraints.
common_x86_64.h
patch
|
blob
|
history
diff --git
a/common_x86_64.h
b/common_x86_64.h
index
f59ff66
..
9db66b5
100644
(file)
--- a/
common_x86_64.h
+++ b/
common_x86_64.h
@@
-129,12
+129,13
@@
static __inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){
*ecx=cpuinfo[2];
*edx=cpuinfo[3];
#else
- __asm__ __volatile__("cpuid"
+ __asm__ __volatile__("mov %%ecx, 0;"
+ "cpuid"
: "=a" (*eax),
"=b" (*ebx),
"=c" (*ecx),
"=d" (*edx)
- : "0" (op)
, "c"(0)
);
+ : "0" (op));
#endif
}