U.S. stock indexes were mixed Wednesday as energy companies skidded along with oil prices, but technology stocks rose and reversed a portion of their recent losses.
After O'Reilly Automotive reported weak sales growth in the second quarter, the three biggest losers on the Standard & Poor's 500 index were all auto parts companies. Automakers slumped too.
An eight-day rally in U.S. crude oil prices ended with a thud, and energy companies took sharp losses. Retailers and small, domestically focused companies also struggled.
Technology companies bucked the trend, finishing higher. Those companies have hit a wall in the last month. Banks as wells as industrial and...