On 15/09/2023 18:02, Paul Renaud via fpc-pascal wrote:
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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to