(AP) -- Stocks gave up early gains and closed broadly lower Tuesday as investors weighed the latest quarterly earnings reports from big U.S. companies and new data pointing to rising inflation.
The S&P 500 fell 0.4%, with most of the companies in the benchmark index losing ground. Banks, industrial stocks and companies that rely on consumer spending accounted for a big share of the decline. Technology stocks bucked the trend, helping counter some of the broader slide. Small company stocks took some of the heaviest losses.
The pullback brought the major stock indexes slightly below the record highs they set a day earlier. Treasury yields rose.
Investors sized up mixed quarterly earnings reports from Goldman Sachs, JPMorgan Chase, PepsiCo and other big companies. They also got another snapshot of how inflation continues to show up in the economy as the a rapid spike in consumer demand and supply constraints translate into higher prices for consumer goods.
The latest report from the Labor Department showed yet another increase in consumer prices in June that surprised economists.
"You had the element of just incredible earnings reported for the most recent quarter, but in some of the commentary that came out there were some questions about, 'OK, what about cost pressures going forward?" said Alan McKnight, chief investment officer at Regions Asset Management. "Then you pair that with the inflation report today where we see another high print."
The S&P 500 fell 15.42 points to 4,369.21. The Dow Jones Industrial Average dropped 107.39 points, or 0.3%, to 34,888.79. The tech-heavy Nasdaq slid 55.59 points, or 0.4%, to 14,677.65, while the Russell 2000 index of smaller companies lost 42.96 points, or 1.9%, to 2,238.86.
Inflation has been a lingering concern for the markets as investors try to gauge how it will impact everything from the economic recovery's trajectory to what actions the Federal Reserve will take to tackle it.
The Labor Department said Tuesday that prices for U.S. consumers jumped in June by the most in 13 years, extending a run of higher inflation that has been raising concerns on Wall Street that the Fed might consider withdrawing its low-interest rate policies and scaling back its bond purchases earlier than expected.
Much of the increase in prices for goods, such as used cars, is mostly tied to a surge in demand and lack of supply. But prices for many items, like lumber and other raw materials, either is easing or will ease as suppliers continue to ramp up operations, said Jamie Cox, managing partner at Harris Financial Group.
"That's a problem and it shows up in all kinds of places but it's not going to be there forever," Cox said.
Major companies opened up the latest round of corporate earnings with investors listening closely for clues about how companies have fared during the recovery and how they see the rest of the year unfolding.
Goldman Sachs fell 1.2% despite reporting the second-best quarterly profit in the investment bank's history. JPMorgan Chase dropped 1.5% after giving investors a mixed report with solid profits but lower revenue as interest rates fell over the last three months.
"The financials have had that real tailwind of rates going higher," McKnight said. "We've already priced that in. Now it's almost a ?show me' story. Can you actually prove that you can deliver earnings at a much higher clip once we get back to a more normalized environment?"
Conagra Brands slid 5.4% for the biggest drop in the S&P 500 after the owner of Chef Boyardee's and other packaged food brands gave investors a weak financial forecast, citing inflation pressure. Fastenal, maker of industrial and construction fasteners, also said it expects more pressure from inflation in product and transportation costs. The stock fell 1.6%.
Bond yields reversed course from early trading and rose to 1.42% from 1.36% late Monday. Overall, yields have been falling for months after a sharp spike earlier in the year.
The calmer bond market is partly signaling more confidence that rising inflation will likely be temporary and tied mostly to the economic recovery.
"That narrative is pretty well anchored and the bond market doesn't fear the Fed tapering or raising rates," Cox said.
Solid earnings did help some companies make gains. PepsiCo rose 2.3% after beating Wall Street's second-quarter profit and revenue forecasts.
Boeing fell 4.2% after announcing production cuts for its large 787 airliner because of a new structural flaw in some planes that have been built but not delivered to airline customers.