diff options
author | David CARLIER <devnexen@gmail.com> | 2024-03-16 13:41:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 13:41:12 +0000 |
commit | 6d3cec01a6c29fa4e51ba129fa13dbf55d2b928e (patch) | |
tree | f890703f1e121d43973ba2d231a290f569b2f043 | |
parent | 5bcb78141c628d9bd7a0b6e398858282c16038d3 (diff) | |
download | llvm-6d3cec01a6c29fa4e51ba129fa13dbf55d2b928e.zip llvm-6d3cec01a6c29fa4e51ba129fa13dbf55d2b928e.tar.gz llvm-6d3cec01a6c29fa4e51ba129fa13dbf55d2b928e.tar.bz2 |
Revert "[openmp] __kmp_x86_cpuid fix for i386/PIC builds." (#85526)
Reverts llvm/llvm-project#84626
-rw-r--r-- | openmp/runtime/src/kmp.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h index 569a1ab..885d663 100644 --- a/openmp/runtime/src/kmp.h +++ b/openmp/runtime/src/kmp.h @@ -1402,19 +1402,9 @@ extern void __kmp_query_cpuid(kmp_cpuinfo_t *p); // subleaf is only needed for cache and topology discovery and can be set to // zero in most cases static inline void __kmp_x86_cpuid(int leaf, int subleaf, struct kmp_cpuid *p) { -#if KMP_ARCH_X86 && (defined(__pic__) || defined(__PIC__)) - // on i386 arch, the ebx reg. is used by pic, thus we need to preserve from - // being trashed beforehand - __asm__ __volatile__("mov %%ebx, %%edi\n" - "cpuid\n" - "xchg %%edi, %%ebx\n" - : "=a"(p->eax), "=b"(p->ebx), "=c"(p->ecx), "=d"(p->edx) - : "a"(leaf), "c"(subleaf)); -#else __asm__ __volatile__("cpuid" : "=a"(p->eax), "=b"(p->ebx), "=c"(p->ecx), "=d"(p->edx) : "a"(leaf), "c"(subleaf)); -#endif } // Load p into FPU control word static inline void __kmp_load_x87_fpu_control_word(const kmp_int16 *p) { |