In trials of offenses punishable by death or necessarily by imprisonment at hard labor, each defendant shall have twelve peremptory challenges, and the state twelve for each defendant. In all other cases, each defendant shall have six peremptory challenges, and the state six for each defendant.