Skip to content

Invalid operand error on Cocoa with ppcrossa64/aarch64 compiler -O1 and -OoNoREGVAR

ppcrossa64 compiler is throwing an 'invalid operand for instruction' when code is compiled with -O1 and -OoNoREGVAR optimization flags. Error occurs for function with line: Inc(Result, 32). Example .pp file is attached. Compile line is:

../fpc/compiler/ppcrossa64 -O1 -OoNoREGVAR -Fu../fpc/rtl/units/aarch64-darwin Arm64Peep.pp

Arm64Peep.pp.zip

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information