Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2025-09

ASM One register allocated twice at once ? 3.3.1 peephole / # Register r10, r15, r15 allocated

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Frb

3.3.1 d3ac07ad274b6c6b09ff9b08a9d7007aaf780aa6

I am currently tracking an issue (either my code, or the peephole opt / or some opt+peephole).

While going through the asm I found:

    # Register r10,r15,r15 allocated

Why is r15 twice in the list?
Is that supposed to happen? Or is that in itself an issue?

Reply by email

Martin Frb
to Martin Frb

Confirmed wrong/bad asm code generation after the reported comment

https://gitlab.com/freepascal.org/fpc/source/-/issues/41422

Martin Frb wrote 11 lines
3.3.1 d3ac07ad274b6c6b09ff9b08a9d7007aaf780aa6 I am currently tracking an issue (either my code, or the peephole opt / or some opt+peephole). While going through the asm I found:     # Register r10,r15,r15 allocated Why is r15 twice in the list? Is that supposed to happen? Or is that in itself an issue?

Reply by email

J. Gareth Moreton
to Martin Frb

I've assigned it to myself and will take a look over the next few days.  You sometimes do get double allocations in the disassembly - that in itself shouldn't cause problems beyond being a bit redundant,

Kit

Martin Frb wrote 21 lines
Confirmed wrong/bad asm code generation after the reported comment https://gitlab.com/freepascal.org/fpc/source/-/issues/41422 On 30/09/2025 10:59, Martin Frb via fpc-devel wrote: > 3.3.1 d3ac07ad274b6c6b09ff9b08a9d7007aaf780aa6 > > I am currently tracking an issue (either my code, or the peephole opt > / or some opt+peephole). > > While going through the asm I found: > >     # Register r10,r15,r15 allocated > > Why is r15 twice in the list? > Is that supposed to happen? Or is that in itself an issue? _______________________________________________ fpc-devel maillist  -  https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
This email has been checked for viruses by Avast antivirus software. www.avast.com

Reply by email