Fix _our_GetThreadCycles for clang/xarch.
authorPat Gavlin <pagavlin@microsoft.com>
Sat, 25 Feb 2017 18:09:00 +0000 (10:09 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Sat, 25 Feb 2017 18:09:00 +0000 (10:09 -0800)
commitd5b5d226c7238b152f070ce259ce491367b1b23e
treef0249cc2f0beb1dfc813d26c800f5e97193ffd99
parentbbe70b4f5941063594b9c34545df6fd89db1aeba
Fix _our_GetThreadCycles for clang/xarch.

The `"=A"` constraint in `asm volatile("rdtsc" : "=A"(cycles))` does not work as expected
on AMD64. Instead, the assembly must use an output constraint for both `eax` and `edx`
(i.e. `=a"(lo), "=d"(hi)`).

Commit migrated from https://github.com/dotnet/coreclr/commit/6be8d477451eb69861cd000330990487ffa4fcc6
src/coreclr/src/jit/compiler.cpp