U.S. stocks traded higher on Wednesday after the government reported a narrower-than-expected U.S. trade deficit for May and shares of International Business Machines Corp. rose after a brokerage upgrade. IBM, a Dow component, jumped 1.6 percent to $81.35 after an analyst at Sanford Bernstein lifted the company's rating to "outperform" from "market-perform." Continuing this week's trend of better-than-expected earnings, motorcycle maker Harley-Davidson Inc. posted quarterly profit that topped Wall Street estimates. Harley-Davidson's shares rose 4.6 percent to $51.96 on the New York Stock Exchange. The Dow Jones industrial average was up 34.14 points, or 0.32 percent, at 10,548.03. The Standard & Poor's 500 Index was up 1.86 points, or 0.15 percent, at 1,224.07. The technology-laced Nasdaq Composite Index was up 1.95 points, or 0.09 percent, at 2,145.10. The U.S. trade deficit narrowed unexpectedly in May to $55.3 billion, according to a Commerce Department report. Analysts expected a trade shortfall of $57 billion, according to a Reuters poll. --More 1743 Local Time 1443 GMT