I understand the purpose of the pf flag, which is to indicate whether there are an even or odd number of ones in the resulting data after certain instructions manipulate the register. However, It is certainly not just for programming tricks such as using assembly to replace several shifts and XOR operations in C, or for loops. There must be a specific intention behind it.
I couldn't find any relevant information by searching on Google either, and it's possible that the keywords I used were not accurate. I also didn't come across any similar questions on Stack Overflow.