www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18826] New: [inline asm] Wrongcode for mov

https://issues.dlang.org/show_bug.cgi?id=18826

          Issue ID: 18826
           Summary: [inline asm] Wrongcode for mov
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: uplink.coder gmail.com

the following code does get mis-compiled. 
ulong getThreadID()
{
    asm { naked; mov RAX, qword ptr FS:0x0 }
}

--
May 04 2018