Create check-failed-regs.pl