View Issue Details

IDProjectCategoryView StatusLast Update
0038542FPCCompilerpublic2021-02-28 09:02
Reporterekryukov Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version3.2.1 
Summary0038542: Wrong arm64 assembly generation with O2
Descriptionfpca64 (arm64) for macOS generates wrong assembly with O2 optimization. O1 works fine.

MIDIDevice_Lemur.s.o2:171:12: error: expected compatible register, symbol or integer in range [0, 4095]
        add w0,w3,x0
                      ^
MIDIDevice_Lemur.pas(781) Error: (9007) Error while assembling exitcode 1

fpc built from 3.2-fixes branch 24-02-2021

Attached two assembly files (o1 & o2 by extension)
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

ekryukov

2021-02-25 08:24

reporter  

MIDIDevice_Lemur.s.o1 (708,279 bytes)
MIDIDevice_Lemur.s.o2 (700,667 bytes)

J. Gareth Moreton

2021-02-25 17:52

developer   ~0129161

Do you have the Pascal source file?

J. Gareth Moreton

2021-02-25 19:41

developer   ~0129163

Thanks. Arm64 is only my secondary development platform, but I'll see if I can find anything.

Jonas Maebe

2021-02-27 16:54

manager   ~0129206

What is the declaration of TLaunchMap?

Florian

2021-02-28 09:02

administrator   ~0129222

Please provide an example which is otherwise compilable. Alternatively try with trunk, I think I fixed an issue like this in trunk.

Issue History

Date Modified Username Field Change
2021-02-25 08:24 ekryukov New Issue
2021-02-25 08:24 ekryukov File Added: MIDIDevice_Lemur.s.o1
2021-02-25 08:24 ekryukov File Added: MIDIDevice_Lemur.s.o2
2021-02-25 17:52 J. Gareth Moreton Note Added: 0129161
2021-02-25 19:41 J. Gareth Moreton Note Added: 0129163
2021-02-27 16:54 Jonas Maebe Note Added: 0129206
2021-02-28 09:02 Florian Status new => feedback
2021-02-28 09:02 Florian FPCTarget => -
2021-02-28 09:02 Florian Note Added: 0129222