Bug 22655 – Disassembler assertion on rdtsc

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-01-08T01:26:48Z
Last change time
2022-01-10T00:29:08Z
Keywords
disassembler, pull
Assigned to
No Owner
Creator
mhh

Comments

Comment #0 by maxhaton — 2022-01-08T01:26:48Z
``` 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) ```
Comment #1 by dlang-bot — 2022-01-09T09:36:16Z
@WalterBright created dlang/dmd pull request #13508 "fix Issue 22655 - Disassembler assertion on rdtsc" fixing this issue: - fix Issue 22655 - Disassembler assertion on rdtsc https://github.com/dlang/dmd/pull/13508
Comment #2 by dlang-bot — 2022-01-10T00:29:08Z
dlang/dmd pull request #13508 "fix Issue 22655 - Disassembler assertion on rdtsc" was merged into master: - e3026a1b018f751dbbd3d0b6205e2b1029fded7c by Walter Bright: fix Issue 22655 - Disassembler assertion on rdtsc https://github.com/dlang/dmd/pull/13508