S&P 500 ends slightly up; traders watch US-China trade talks - Reuters