Stocks ended mixed Friday as market participants digested the latest corporate earnings results and traded ahead of the Federal Reserve's next policy-setting meeting next week. The Dow Jones Industrial Average posted its tenth straight session of gains, while the S&P 500 Index ticked slightly higher and the Nasdaq Composite lost 0.2%.

Here's how the market settled to close out the week:

S&P 500 Index (SPY  ): +0.03% or +1.45 points to 4,536.32

Dow Jones Industrial Average (DIA  ): +0.01% or +2.84 points to 35,228.02

Nasdaq Composite Index (QQQ  ): -0.22% or -30.50 points to 14,032.81

For the week, the S&P 500 added about 0.7%, while the Dow climbed over 2% to mark its second positive week in a row. The Nasdaq, however, fell nearly 0.6% as post-earnings trading for Tesla (TSLA  ) and Netflix (NFLX  ) weighed on the tech-heavy average.

On Friday, shares of Taiwan Semiconductor Manufacturing Company (TSM  ) fell after the world's largest chipmaker posted its first decline in quarterly net income in 4 years. Still, the company forecasts third-quarter revenue between $16.7 billion and $17.5 billion.

"Moving into third quarter 2023, we expect our business to be supported by the strong ramp of our 3-nanomenter technologies, partially offset by customers' continued inventory adjustment," said CFO Wendell Huang in a release.

Oppenheimer analyst Rick Schafer wrote in a note to clients on Friday that artificial intelligence will be a driver for semiconductor industry earnings next week.

"We favor structural growth names leveraged to cloud/AI, 5G, and auto verticals," Schafer wrote, with the firm favoring names like Nvidia (NVDA  ), Broadcom (AVGO  ) and Marvell Technology (MRVL  ). "We see 2H recovery led by AI adoption and post correction PC/handset."

"After several Qs of demand digestion, inventory levels have generally right-sized, paving the way for 2H growth," he added. "Seasonal 3Q strength helps, though macro and China in particular create uncertainty around shape of 2H recovery.

Looking ahead, Wall Street is preparing for a busy week of earnings and the central bank's latest policy decision. Traders are currently pricing in a 99.8% probability that the Fed will raise interest rates by 0.25% to a range of 5.25% to 5.50% on Wednesday, according to CME Group's FedWatch tool.

Major earnings reports from companies like Microsoft (MSFT  ), Alphabet (GOOG  ) (GOOGL  ), Amazon (AMZN  ), Meta Platforms (META  ), Boeing (BA  ), AT&T (T  ), Coca-Cola (KO  ), Visa (V  ), General Electric (GE  ), Mastercard (MA  ), McDonald's (MCD  ), Procter & Gamble (PG  ), Exxon Mobil (XOM  ) and others are expected to drive market moves next week beyond the Fed's decision.