[PATCH] D22181: Add runtime support for __cpu_model (__builtin_cpu_supports)
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 14 12:52:46 PDT 2016
echristo added inline comments.
================
Comment at: lib/builtins/cpu_model.c:167
@@ +166,3 @@
+#if defined(__x86_64__)
+ // gcc doesn't know cpuid would clobber ebx/rbx. Preseve it manually.
+ asm("movq\t%%rbx, %%rsi\n\t"
----------------
joerg wrote:
> Typo
To clarify: "Preserve".
https://reviews.llvm.org/D22181
More information about the llvm-commits
mailing list