www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22655] New: Disassembler assertion on "rdtsc"

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

          Issue ID: 22655
           Summary: Disassembler assertion on "rdtsc"
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: backend
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: maxhaton gmail.com

```
void main()
{
    asm {
        rdtsc;
    }
}
```

Yields:

```
_Dmain:
0000:   0F 31 31                rdtsc
dmd: src/dmd/backend/disasm86.d:1854: Assertion `array index out of bounds'
failed.
Aborted (core dumped)
```

--
Jan 07 2022