The fact it allows the death penalty shows that the 8th amendment is essentially meaningless. Glossip v. Gross showed that SCOTUS doesn't even care how the death penalty is carried out. If the state can kill you slowly and painfully, why do you expect it to prohibit anything else?