Semiconductor stocks are the biggest S&P 500 gainers in Thursday trading, fueled by upbeat commentary from Taiwan Semiconductor Manufacturing Co. on the state of the artificial-intelligence market.