If you are travelling with SQ or TR from SIN to HKG, you must take a PCR test in Singapore. This is because the airline does not want to get banned from flying into HK due to passenger fail to comply with the boarding requirement document. If you take the test in Singapore, it is easier for them to check whether it is approved by the government of Singapore which would fulfill HK requirement.