LONDON -

Luis Scola scored 17 points, Manu Ginobili and Carlos Delfino added 16 apiece and Argentina held on down the stretch for an 82-77 quarterfinal win over Brazil in the Olympic men's basketball tournament on Wednesday, setting up a rematch with the U.S. in the semifinals.

Argentina lost to the Americans by 29 in the preliminary round finale.

The Argentines and Americans will meet in the semifinals for the third straight Olympics.

Argentina won in 2004 at Athens, and the U.S. Redeem Team avenged that loss four years ago in Beijing on the way to winning gold.

Marcelinho Huertas and Leandro Barbosa had 22 points each for Brazil, which cut an 11-point deficit to three in the final two minutes but couldn't catch Argentina.

France falls to Spain

Marc Gasol scored 14 points, brother Pau had two huge blocked shots down the stretch and Spain nearly pitched a shutout over the final 6:50 to beat France 66-59 on Wednesday and advance to the semifinals in Olympic men's basketball.

Juan Carlos Navarro added 12 points and Pau Gasol 10 for the Spanish, the 2008 silver medalists who advance to play Russia on Friday.

Trailing 57-54 after Nicolas Batum's basket with 6:51 to play, Spain didn't allow another point until Mickael Gelabale's meaningless jumper with 5.5 seconds remaining, ending a two-game losing streak.

Tony Parker and Boris Diaw each scored 15 points for France, which grew frustrated at the finish and committed two unsportsmanlike fouls in the final half-minute.