US stocks end mixed as oil prices fall, chip shares tumble