The Dow Jones Industrial Average was up 39.00 points, or 0.15 percent, to 26,218.13. The S&P 500 increased 6.16 points, or 0.21 percent, to 2,873.40. The Nasdaq Composite Index rose 46.86 points, or 0.60 percent, to 7,895.55.
Of the 11 primary S&P 500 sectors, materials and technology outperformed while energy and consumer staples struggled.
Shares of major U.S. chipmakers rallied, contributing to the market. Advanced Micro Devices surged 8.49 percent, leading the advancers in the Nasdaq.
Shares of both Applied Materials and Micron Technology gained more than 3 percent at market closing, also among the best performers.
However, the market gains were capped as investors also digested a slew of soft economic data.
Total nonfarm private employment in the United States increased by 129,000 in March, payroll data company Automatic Data Processing (ADP) reported on Wednesday.
That was the weakest showing in 18 months and missed market consensus. Meanwhile, U.S. non-manufacturing index fell to 56.1 in March from 59.7 in February, data from the Institute for Supply Management showed.
The figure represents continued growth in the non-manufacturing sector, but at a slower pace.