my new favourite wrong code bug

user1234 user1234 at 12.de
Mon Feb 27 09:50:53 UTC 2023


On Sunday, 26 February 2023 at 20:47:47 UTC, claptrap wrote:
> [...]
> Even the (3) compare looks iffy, its an array of bytes but 
> looks like the compare is 32 bit?

I bet it's because of integral promotion. Once an element loaded 
it's promoted to int, i.e there should be a "signed extension". I 
see ldc does it in the form of a "movzx" instruction.


More information about the Digitalmars-d mailing list