TSMC, ASML and Applied Materials were rising as well in response to the latest signs of demand for artificial-intelligence infrastructure.