HDFC Bank was the top gainer, while Tata Consumer Products led the losses.