Stocks crept cautiously higher ahead of the U.S. jobs report for March on Friday and a possibly contentious meeting between Donald Trump and China's President Xi Jinping over the next two days. 

The S&P 500 was up 0.2%, the Dow Jones Industrial Average added 0.18%, and the Nasdaq rose 0.14%.

Wall Street ended lower on Wednesday, falling into the red in the final hour, after the Federal Reserve committed to further monetary tightening this year. In the minutes from the Fed's meeting in March, it was revealed the central bank could reduce its balance sheet this year, plus hinted at the possibility of ending its policy of reinvesting principal payments. Reducing the balance sheet could have the same impact on the markets as a rate hike. The Fed currently holds $4.5 trillion in bonds on its balance sheet.

Markets have also been in churn mode over the past few days, Wednesday excluded, as investors awaited hints of progress on tax reform from the Trump administration. Trump has frequently promised an overhaul of the tax code, though details of his plans have remained vague.

"The mood of the market is basically 'wait and see'... with respect to what the shape and timing of fiscal reform will be in terms of tax cuts and regulatory reform," Ernie Cecilia of Bryn Mawr Trust told TheStreet. "When we go through our evaluation templates for companies, when you start adjusting the corporate tax rate the valuation implications are significant amounts."

Trump's ability to work the political system was called into question, though, after his Obamacare repeal and replace bill was pulled before a congressional vote in March. Trump and House Speaker Paul Ryan had failed to secure the necessary number of votes for the bill to pass the House. Ryan said on Wednesday that tax reform will take longer than a health care bill, noting that the House, Senate and White House were on different pages when it came to their plans' development. 

The official jobs report for March, one of the most closely watched monthly datum, will be released on Friday. A massive beat on private payrolls numbers from ADP kept investors in good spirits ahead of Friday's release. Analysts anticipate no drop in recent strength in the labor market with a target of 174,000 jobs expected to have been added to U.S. payrolls last month. The unemployment rate is anticipated to have held at 4.7%, while monthly wages should rise 0.3%.

Weekly jobless claims showed a big decline in the past week. The number of new claims for unemployment benefits fell by 25,000 to 234,000. The less volatile four-week average dropped 4,500 to 250,000. 

Trump and President Xi are scheduled to meet on Thursday and Friday at Mar-a-Lago in Florida in what are expected to be a highly charged discussions. Trump had been highly critical of China, accusing the country of currency manipulation and unfair trade practices. Trump had previously proposed a high tariff on U.S. imports of Chinese-made products. North Korea also will presumably be an important topic of conversation.

"It is imperative to watch if U.S. President Trump acts within his protectionist rhetoric or if he eventually shows a more cooperative stance like how he did with his meetings with U.K. Prime Minister Theresa May and Japan Prime Minister Shinzo Abe," said Phillip Futures' Woon Tian Yong. "It is also important to sieve out China's management of its relationship with the United States under Trump, and its positions following the meeting."

Energy stocks were the best performers Thursday as crude oil prices rose. The commodity and the energy sector had a rocky session on Wednesday after a weekly reading on domestic inventories showed an unexpected rise in stockpiles. 

West Texas Intermediate crude was up 1.1% to $51.70 a barrel on Thursday morning, while major oilers including Exxon Mobil (XOM - Get Report) , Royal Dutch Shell (RDS.A - Get Report) , Total (TOT - Get Report)  and Petrobras (PBR - Get Report) rose. The Energy Select Sector SPDR ETF (XLE - Get Report) increased 0.9%. 

Bed, Bath & Beyond (BBBY - Get Report) increased 6% after topping analysts' estimates in its recent quarter. The homewares retailer earned $1.84 a share, down from $1.91 in the year-ago quarter but above targets of $1.77. Comparable-store sales increased 0.4%, while overall sales rose to $3.5 billion from $3.4 billion in the year-ago quarter.  

Yum! China (YUMC - Get Report) surged 11% on first-quarter earnings that were better than anticipated. The owner of KFC in China earned 44 cents a share, 6 cents above consensus. Sales of $1.28 billion exceeded estimates of $1.27 billion, while same-store sales increased 1%. 

CarMax (KMX - Get Report)  fell 1% despite reporting a double-digit gain in quarterly earnings. Net income of 81 cents a share was 14% higher than a year earlier and topped estimates of 79 cents. Sales increased just over 9% to $4.05 billion and came in higher than a target of $3.93 billion. The retailer expects to open 15 new locations in fiscal 2018. 

Constellation Brands (STZ - Get Report) moved higher on Thursday after a better-than-expected fourth quarter. The alcohol company earned net income of $2.26 a share, up from $1.48 a share in the year-ago quarter. Sales of $1.63 billion exceeded estimates of $1.59 billion. For fiscal 2018, the company anticipates earnings of at least $7.65 a share.  

SeaWorld (SEAS - Get Report) was initiated with a sell rating and $16 price target at Goldman Sachs. Analysts are skeptical that cost-cutting measures will translate to growth.

Cardinal Health (CAH - Get Report) , the U.S. drug distributor, is reportedly  nearing a deal to acquire the medical supplies business of Medtronic (MDT - Get Report) for close to $6 billion. Medtronic and Cardinal Health have entered into exclusive talks over the sale of the business, and a deal could be announced later this month, sources told Reuters 

Advanced Micro Devices (AMD - Get Report)  fell more than 7% after Goldman Sachs initiated coverage with a sell rating and $11 price target. The stock has already priced in a definite improvement in its financial situation and current valuation metrics make it "difficult" to justify, Goldman analyst Toshiya Hari wrote.

Costco (COST - Get Report) rose more than 2% after reporting strong sales figures for March. The warehouse retailer said sales in the U.S. in March increased 9% to $11.64 billion, while same-store sales increased 7%. Excluding gas prices and currency exchange, comparable sales in the U.S. increased 6%.