[fpc-devel] fpc bug with M1
Martin Frb
lazarus at mfriebe.de
Thu Dec 30 21:01:11 CET 2021
On 30/12/2021 20:57, Jonas Maebe via fpc-devel wrote:
> On 30/12/2021 20:55, Martin Frb via fpc-devel wrote:
>> On 30/12/2021 20:46, Jonas Maebe via fpc-devel wrote:
>>> On 30/12/2021 18:06, Florian Klämpfl via fpc-devel wrote:
>>>>
>>>> Ah yes, or like this. Nevertheless, the question is whether the
>>>> ldrsb w0,[x0] is correct or not.
>>>
>>> Yes, I was unclear: with the "I don't know/remember where this is
>>> done" I meant "changing the load of the unsigned byte type into a
>>> signed load". I can't think immediately of a reason either why this
>>> is done.
>>
>> "unsigned byte"? The pointer in the pascal code is a pint8 => signed.
>
> Oh, I thought it was puint8. Then it makes sense.
> c90616944d3bde7b36e924d27a0790195d61f95c applies both to OS_8 and OS_S8.
>
It got changed to uint8 after the issue surfaced. From what the code
does, uint8 makes more sense anyway.
But the asm code with the sign extension, is the one from signed int8.
Well at least according to the person who sent me this (they sent me
both versions, and that one is supposed to be the int8 one)
More information about the fpc-devel
mailing list