The gains in the stock came even as the benchmark indices declined more than 1 percent amid heavy selling in information technology shares.