By Angela Moon
NEW YORK (Reuters) - U.S. stocks edged up on Friday, boosted by bullish news from the tech sector, but major indexes fell for the week as unrest in Iraq kept investors on edge.
Analysts are worried about the impact a protracted period of high commodity prices could have on economic growth, especially with indexes near record levels.
President Barack Obama said on Friday he needs several days to determine how the United States will help Iraq deal with a militant insurgency, but he ruled out sending U.S. troops back into combat and said any intervention would be contingent on Iraqi leaders becoming more involved.
"The situation in Iraq is another one of these geopolitical flare-ups that have a short-term impact on the market. It will continue to create volatility in the oil market, but I don't think it will spill over that much to equities," said Randy Frederick, managing director of trading and derivatives at Charles Schwab.
The CBOE Volatility index VIX <.VIX>, Wall Street's so-called fear gauge, fell 3 percent to 12.18 on Friday.
Intel shares jumped nearly 7 percent to $29.87 a day after the Dow component raised its full-year revenue outlook, citing stronger-than-expected demand for personal computers used by businesses.
Among other Internet names, Yelp Inc
The Dow Jones industrial average <.DJI> rose 41.55 points or 0.25 percent, to 16,775.74, the S&P 500 <.SPX> gained 6.05 points or 0.31 percent, to 1,936.16, and the Nasdaq Composite <.IXIC> added 13.02 points or 0.3 percent, to 4,310.65.
For the week, the Dow was down 0.9 percent, the S&P fell 0.7 percent and the Nasdaq was down 0.25 percent.
The week's decline was the first after three weeks of consecutive gains on the S&P 500. For the year, the broad market index is up about 4.8 percent.
In macroeconomic news, U.S. consumer sentiment unexpectedly fell in June as views by consumers with the lowest incomes soured, according to the preliminary June read from the Thomson Reuters/University of Michigan's index.
Trading volume was at around 5.07 billion shares on U.S. exchanges, below last month's average of about 5.76 billion, according to data from BATS Global Markets.
(Reporting by Angela Moon; Editing by Nick Zieminski)