The Prime Minister has vowed to resign if defeated.