All three major US stock indexes advanced, with the Nasdaq, powered by chips, enjoying the largest percentage gain.