← Back to index
|
Original Bugzilla link
Bug 18826 – [inline asm] Wrongcode for mov
Status
NEW
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2018-05-04T14:15:06Z
Last change time
2024-12-13T18:58:35Z
Keywords
iasm, wrong-code
Assigned to
No Owner
Creator
Stefan Koch
Moved to GitHub: dmd#19431 →
Comments
Comment #0
by uplink.coder — 2018-05-04T14:15:06Z
the following code does get mis-compiled. ulong getThreadID() { asm { naked; mov RAX, qword ptr FS:0x0 } }
Comment #1
by uplink.coder — 2018-05-04T15:21:33Z
More Info: DMD currently generates 64 48 8b 05 00 00 00 00 00 mov rax,QWORD PTR fs:[rip+0x0] But it should generate 64 48 8b 04 25 00 00 00 00 mov rax,QWORD PTR fs:0x0
Comment #2
by robert.schadek — 2024-12-13T18:58:35Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/19431
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB