The amount of non-determinism in compiler and LLM output is so vast that even comparing them is silly.
Tests are not a one time thing. They need to be maintained, and if you use same LLM to do it, it will happily delete failing ones, so better use a seaparate agent, and be prepared for the bill.