[LLVMbugs] [Bug 14741] AddressSanitizer crash on inline assembly with RDTSC

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 29 03:39:32 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14741

Kostya Serebryany <kcc at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Kostya Serebryany <kcc at google.com> 2012-12-29 05:39:32 CST ---
The code is invalid. 
rdtsc changes rax and rdx, but the inline assembly blob doesn't tell it.
It should look something like this:
   __asm__ __volatile__ ("rdtsc" : "=A" (t) : : "rax", "rdx");

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list