On Wednesday, 26 July 2023 at 01:56:28 UTC, Richard (Rikki)
Andrew Cattermole wrote:
The spec says they are unsigned, so if ldc is using sign
extension, that is probably a bug.
My fault, I reread the code and the sign-extension applies to
something else, coincidentally right where I was looking at this.
It uses signed 32-bit displacements in a case/switch table of
offsets into the code segment, and that was what mislead me. It
could have used unsigned displacements but then all the labels in
the code would have to be above the reference base point, and
this allows +/- offsets to anywhere. So my apologies.
- Re: What is a dc... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
- Re: What is... Cecil Ward via Digitalmars-d-learn