Sign in Join

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

Mailing lists / fpc-pascal / 2023-09

Quick question

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Paul Renaud

A quick question about FreePascal for Arm32.
Does the floating point code generated by the compiler depend on the vector length being set at zero? If I were to change the vector length that the VFP processes to 3 which would enable using vectors of 4 elements,would that  effect the code the compiler generates to give wrong results? I searched the documentation, but there is no mention of it. Thanks, Paul.

Reply by email

Jonas Maebe
to Paul Renaud
Paul Renaud wrote 8 lines
A quick question about FreePascal for Arm32. Does the floating point code generated by the compiler depend on the vector length being set at zero? If I were to change the vector length that the VFP processes to 3 which would enable using vectors of 4 elements, would that  effect the code the compiler generates to give wrong results?

Since FPC enables floating point exceptions, it would probably at least generate spurious exceptions (trying to divide 0.0 by 0.0 and things like that).

FPC does support the -Sv command line option that enables using arrays as vectors (if they fit in a vector register for the current target architecture; there's no automatic splitting of large arrays into a sequence of smaller vector operations afaik). It's not very well tested though.

Jonas

Reply by email