http://bugs.llvm.org/show_bug.cgi?id=32620
Douglas Yung <douglas_y...@playstation.sony.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #5 from Douglas Yung <douglas_y...@playstation.sony.com> ---
So it turns out my fix didn't solve the problem. Digging deeper into the test
machine, it turns out that the machine DOES support rdtscp, however, it is
unable to determine the CPU frequency, so that function returns 0, causing the
test to fail.
I tried to implement the frequency detection that Dean mentioned in comment 3,
and I have something that kind of works, but needs to be cleaned up, but my
concern is that it may only work for Intel processors. As far as I can tell,
AMD does not include the processor frequency in their processor brand string,
so that method would not work. Unfortunately I don't have any AMD linux
machines in my office that I can check with either.
But possibly another work-around might be to use the emulated TSC if either
rdtscp support is not present, or if the CPU frequency cannot be determined. I
think that should solve the problem I am seeing on our test machine here.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs